SHOW:
|
|
- or go back to the newest paste.
| 1 | module.exports = {
| |
| 2 | entry: './tsc/index', | |
| 3 | output: {
| |
| 4 | path: 'build', | |
| 5 | filename: 'bundle.js' | |
| 6 | }, | |
| 7 | resolve: {
| |
| 8 | // Add '.ts' and '.tsx' as resolvable extensions. | |
| 9 | extensions: [".ts", ".tsx", ".js", ".json"] | |
| 10 | }, | |
| 11 | module: {
| |
| 12 | loaders: [ | |
| 13 | {
| |
| 14 | test: /\.ts$/, | |
| 15 | exclude: /(node_modules)/, | |
| 16 | loader: 'babel', | |
| 17 | query: {
| |
| 18 | presets: ['es2015', 'react'] | |
| 19 | } | |
| 20 | } | |
| 21 | ] | |
| 22 | } | |
| 23 | }; |