25 lines
477 B
JavaScript
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'
|
||
|
}
|
||
|
};
|