wallet-core/node_modules/ts-loader/examples/react-cdn-simple/webpack.config.js
2017-05-24 15:11:17 +02:00

25 lines
477 B
JavaScript

'use strict';
module.exports = {
entry: './src/index.tsx',
output: { filename: 'index.js' },
module: {
rules: [
{
test: /\.tsx?$/,
loader: 'ts-loader',
options: {
transpileOnly: true
}
}
]
},
resolve: {
extensions: [ '.ts', '.tsx' ]
},
externals: {
'react': 'React',
'react-dom': 'ReactDOM'
}
};