Skip to content

Commit ab77c4d

Browse files
committed
Added Babel / Webpack configuration to tell Babel to use the presets 'env' and 'react'.
1 parent 729c209 commit ab77c4d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

webpack.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ module.exports = {
1111
module: {
1212
loaders: [{
1313
loader: 'babel-loader',
14-
test: /\.jsx$/
14+
test: /\.jsx$/,
15+
query: {
16+
presets: ['env', 'react']
17+
}
1518
}]
1619
},
1720
output: {

0 commit comments

Comments
 (0)