Skip to content

Commit c9cc357

Browse files
committed
update babel plugins
1 parent 8e4c474 commit c9cc357

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.babelrc

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"presets": ["@babel/preset-env", "@babel/preset-react"],
2+
"presets": [
3+
"@babel/preset-env",
4+
"@babel/preset-react"
5+
],
36
"plugins": [
4-
"babel-plugin-transform-class-properties",
5-
"babel-plugin-transform-object-rest-spread",
7+
"@babel/plugin-proposal-class-properties",
8+
"@babel/plugin-syntax-object-rest-spread",
69
"@babel/plugin-syntax-dynamic-import"
710
]
811
}

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
},
1919
"devDependencies": {
2020
"@babel/core": "^7.2.2",
21+
"@babel/plugin-proposal-class-properties": "^7.8.3",
2122
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
23+
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
2224
"@babel/polyfill": "^7.2.5",
2325
"@babel/preset-env": "^7.2.3",
2426
"@babel/preset-react": "^7.0.0",
2527
"babel-eslint": "^10.0.1",
2628
"babel-loader": "^8.0.5",
27-
"babel-plugin-transform-class-properties": "^6.24.1",
28-
"babel-plugin-transform-object-rest-spread": "^6.26.0",
2929
"clean-webpack-plugin": "^1.0.1",
3030
"copy-webpack-plugin": "^5.0.2",
3131
"cross-env": "^5.2.0",

0 commit comments

Comments
 (0)