Skip to content

Commit 1d3b2b6

Browse files
committed
Added Babel / Webpack configuration to tell Babel to use the presets 'es2015' and 'react'.
1 parent e3bde61 commit 1d3b2b6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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: ['es2015', 'react']
17+
}
1518
}]
1619
},
1720
output: {

0 commit comments

Comments
 (0)