File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,14 @@ var moduleOpts = {
1313 // Inform webpack to use the babel loader when reading files
1414 // ending in '.jsx'
1515 loaders : [
16- { test : / \. j s x $ / , exclude : / n o d e _ m o d u l e s / , loader : 'babel' }
16+ {
17+ test : / \. j s x $ / ,
18+ exclude : / n o d e _ m o d u l e s / ,
19+ loader : 'babel-loader' ,
20+ query : {
21+ presets : [ 'es2015' , 'react' ]
22+ }
23+ }
1724 ]
1825} ;
1926
@@ -49,4 +56,4 @@ module.exports = [
4956 libraryTarget : 'commonjs2'
5057 } ,
5158 module : moduleOpts
52- } ] ;
59+ } ] ;
Original file line number Diff line number Diff line change 66 "watch" : " webpack --config example_app/static/webpack.config.js --watch"
77 },
88 "dependencies" : {
9- "babel-core" : " ^5.8.22" ,
10- "babel-loader" : " ^5.3.3" ,
9+ "babel-core" : " ^6.9.1" ,
10+ "babel-loader" : " ^6.2.4" ,
11+ "babel-preset-es2015" : " ^6.9.0" ,
12+ "babel-preset-react" : " ^6.5.0" ,
1113 "jquery" : " ^2.1.3" ,
1214 "marked" : " ^0.3.3" ,
1315 "react" : " ^0.14.2" ,
14- "webpack" : " ^1.12.3 " ,
16+ "webpack" : " ^1.13.1 " ,
1517 "react-render-service" : " ^0.12.4"
1618 }
1719}
You can’t perform that action at this time.
0 commit comments