aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--webpack.config.js6
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']
},