wallet-core/node_modules/ts-loader/examples/react-cdn-simple/webpack.config.js

25 lines
477 B
JavaScript
Raw Normal View History

2017-05-03 15:35:00 +02:00
'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'
}
};