Skip to content

Commit acad937

Browse files
committedSep 13, 2018
fix: babel 7 compatibility. #1043
1 parent d6853b7 commit acad937

File tree

7 files changed

+1077
-978
lines changed

7 files changed

+1077
-978
lines changed
 

‎examples/all-possible-containers/.babelrc

+7-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
"presets": [
33
"@babel/preset-flow",
44
"@babel/preset-react",
5-
["@babel/preset-env", { "modules": false }]
5+
[
6+
"@babel/preset-env",
7+
{
8+
"modules": false
9+
}
10+
]
611
],
712
"plugins": [
813
"@babel/plugin-proposal-class-properties",
@@ -29,4 +34,4 @@
2934
]
3035
}
3136
}
32-
}
37+
}

‎examples/all-possible-containers/package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@
2323
"react-dom": "16.3.2"
2424
},
2525
"devDependencies": {
26-
"@babel/core": "7.0.0-beta.46",
27-
"@babel/plugin-proposal-class-properties": "7.0.0-beta.46",
28-
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.46",
29-
"@babel/plugin-syntax-dynamic-import": "7.0.0-beta.46",
30-
"@babel/plugin-transform-react-constant-elements": "7.0.0-beta.46",
31-
"@babel/plugin-transform-react-inline-elements": "7.0.0-beta.46",
32-
"@babel/preset-env": "7.0.0-beta.46",
33-
"@babel/preset-flow": "7.0.0-beta.46",
34-
"@babel/preset-react": "7.0.0-beta.46",
26+
"@babel/core": "^7.0.0",
27+
"@babel/plugin-proposal-class-properties": "^7.0.0",
28+
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
29+
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
30+
"@babel/plugin-transform-react-constant-elements": "^7.0.0",
31+
"@babel/plugin-transform-react-inline-elements": "^7.0.0",
32+
"@babel/preset-env": "^7.0.0",
33+
"@babel/preset-flow": "^7.0.0",
34+
"@babel/preset-react": "^7.0.0",
3535
"babel-core": "^7.0.0-bridge.0",
36-
"babel-loader": "8.0.0-beta.2",
36+
"babel-loader": "8.0.0",
3737
"babel-plugin-transform-react-pure-class-to-function": "1.0.1",
3838
"babel-plugin-transform-react-remove-prop-types": "0.4.13",
3939
"cross-env": "5.1.4",

0 commit comments

Comments
 (0)
Please sign in to comment.