diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-09 11:42:05 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-09 15:35:19 +0900 |
commit | 9a6a614466f7d83bca3e05e24982d16d32b7a3d6 (patch) | |
tree | 5f3375c448676b250aaa07372a8a495acd8eb809 | |
parent | 1d8e92214c96337768aea23d7cc50109fac9540f (diff) |
configure webpack
-rw-r--r-- | webpack.config.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webpack.config.js b/webpack.config.js index fff49d1..977ea75 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -20,11 +20,11 @@ module.exports = { module: { loaders: [ { - test: /\.js$/, + test: [ /\.js$/, /\.jsx$/ ], exclude: /node_modules/, loader: 'babel-loader', query: { - presets: [ 'es2015' ] + presets: ['es2015', 'react'] } }, { @@ -39,7 +39,7 @@ module.exports = { }, resolve: { - extensions: [ '.js' ], + extensions: [ '.js', '.jsx' ], modules: [path.join(__dirname, 'src'), 'node_modules'] }, |