Skip to content

Commit 18aeb67

Browse files
committed
Update to Babel 6
1 parent 1ec891c commit 18aeb67

File tree

3 files changed

+13
-20
lines changed

3 files changed

+13
-20
lines changed

.babelrc

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
{
2-
"stage": 0,
3-
"env": {
4-
"development": {
5-
"extra": {
6-
"react-transform": {
7-
"transforms": [{
8-
"transform": "react-transform-hmr",
9-
"imports": ["react"],
10-
"locals": ["module"]
11-
}]
12-
}
13-
}
14-
}
15-
}
2+
"presets": [ "es2015", "stage-0", "react" ],
3+
"plugins": [ "add-module-exports", "transform-decorators-legacy" ]
164
}

package.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,16 @@
2323
],
2424
"license": "MIT",
2525
"devDependencies": {
26-
"babel": "^5.8.23",
27-
"babel-core": "^5.8.25",
28-
"babel-eslint": "^4.1.3",
29-
"babel-loader": "^5.3.2",
30-
"babel-plugin-react-transform": "^1.1.1",
26+
"babel-core": "^6.3.15",
27+
"babel-eslint": "^4.1.6",
28+
"babel-loader": "^6.2.0",
29+
"babel-plugin-add-module-exports": "^0.1.1",
30+
"babel-plugin-react-transform": "^2.0.0-beta1",
31+
"babel-plugin-transform-decorators-legacy": "^1.2.0",
32+
"babel-polyfill": "^6.3.14",
33+
"babel-preset-es2015": "^6.3.13",
34+
"babel-preset-react": "^6.3.13",
35+
"babel-preset-stage-0": "^6.3.13",
3136
"chromedriver": "^2.19.0",
3237
"eslint": "^1.7.1",
3338
"eslint-config-airbnb": "^0.1.0",

webpack/base.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const baseConfig = (params) => ({
4444
loaders: [
4545
...(params.loaders ? params.loaders : [{
4646
test: /\.js$/,
47-
loaders: ['babel'],
47+
loader: 'babel',
4848
exclude: /node_modules/
4949
}]),
5050
{

0 commit comments

Comments
 (0)