Skip to content

Commit eeebac1

Browse files
committed
Update example babel version
1 parent a8571f0 commit eeebac1

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

example/example_app/static/webpack.config.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff 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: /\.jsx$/, exclude: /node_modules/, loader: 'babel'}
16+
{
17+
test: /\.jsx$/,
18+
exclude: /node_modules/,
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+
}];

example/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
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
}

0 commit comments

Comments
 (0)