diff options
author | Noah Loomans <noahloomans@gmail.com> | 2018-01-06 12:11:19 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2018-01-06 12:11:19 +0100 |
commit | 77dccd31b32ee0a9a53b2186bae231069c5ab152 (patch) | |
tree | f90c5c524f1d3536a1f6ab665a7350739f590b7a /webpack.config.js | |
parent | 95041dffbd23fe81802efd5fb25cffe492cdb551 (diff) |
Revert "Move to typescript"
This reverts commit f0c8cf0e79f003514fd65a70def5820205955a77.
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/webpack.config.js b/webpack.config.js index 357bfd1..061f0d1 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -2,25 +2,23 @@ const path = require('path'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const js = { - entry: './src/client/react/index.tsx', + entry: './src/client/react/index.js', output: { path: path.resolve(__dirname, 'src/client/static'), filename: 'bundle.js', }, - devtool: 'source-map', module: { rules: [ { - test: [/\.tsx?$/], - loader: 'awesome-typescript-loader', + test: [/\.js$/, /\.jsx$/], + exclude: [/node_modules/], + loader: 'babel-loader', + options: { presets: ['es2015', 'react', 'stage-2'] }, }, - // exclude: [/node_modules/], - // loader: 'babel-loader', - // options: { presets: ['es2015', 'react', 'stage-2'] }, ], }, resolve: { - extensions: ['.js', '.ts', '.tsx'], + extensions: ['.js', '.jsx'], }, }; |