Last active
October 29, 2017 15:28
-
-
Save pmcalabrese/4586d55fb3b7297cee18e610dba84679 to your computer and use it in GitHub Desktop.
ts to js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
{ | |
test: /\.tsx?/i, | |
exclude: /node_modules/, | |
use: [ | |
{ | |
loader: 'babel-loader', | |
options: { | |
presets: [ | |
'es2015', | |
"preact" | |
], | |
plugins: [ | |
[ | |
'transform-react-jsx', | |
{ pragma: 'h' }, | |
] | |
] | |
} | |
}, | |
{ | |
loader: 'ts-loader' | |
} | |
] | |
}, | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment