Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 3faabe0

Browse files
Upgrade to babel 7, fix Jest Babel 7 bug
1 parent 045427d commit 3faabe0

File tree

4 files changed

+761
-627
lines changed

4 files changed

+761
-627
lines changed

.babelrc

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"presets": ["env", "react"],
2+
"presets": ["@babel/preset-env", "@babel/preset-react"],
33
"env": {
44
"production": {
5-
"plugins": ["transform-object-rest-spread", "styled-jsx/babel"]
5+
"plugins": ["@babel/plugin-proposal-object-rest-spread", "styled-jsx/babel"]
66
},
77
"development": {
8-
"plugins": ["transform-object-rest-spread", "styled-jsx/babel"]
8+
"plugins": ["@babel/plugin-proposal-object-rest-spread", "styled-jsx/babel"]
99
},
1010
"test": {
11-
"plugins": ["transform-object-rest-spread", "styled-jsx/babel-test"]
11+
"plugins": ["@babel/plugin-proposal-object-rest-spread", "styled-jsx/babel-test"]
1212
}
1313
}
1414
}

dash_core_components/package.json

+8-7
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"author": "Chris Parmer <[email protected]>",
2828
"license": "MIT",
2929
"dependencies": {
30-
"babel-plugin-transform-object-rest-spread": "^6.26.0",
3130
"cross-env": "^5.2.0",
3231
"eslint": "^5.8.0",
3332
"eslint-config-prettier": "^3.0.1",
@@ -48,12 +47,14 @@
4847
"react-with-direction": "^1.3.0"
4948
},
5049
"devDependencies": {
51-
"babel-core": "^6.26.3",
52-
"babel-eslint": "^8.2.6",
50+
"@babel/core": "^7.1.5",
51+
"babel-core": "^7.0.0-bridge.0",
52+
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
53+
"@babel/preset-env": "^7.1.5",
54+
"@babel/preset-react": "^7.0.0",
55+
"babel-eslint": "^10.0.1",
56+
"babel-loader": "^8.0.4",
5357
"babel-jest": "^23.6.0",
54-
"babel-loader": "^7.1.4",
55-
"babel-preset-env": "^1.7.0",
56-
"babel-preset-react": "^6.24.1",
5758
"component-playground": "^3.0.0",
5859
"copyfiles": "^2.0.0",
5960
"css-loader": "^1.0.1",
@@ -66,7 +67,7 @@
6667
"react-dom": "^16.6.1",
6768
"regenerator-runtime": "^0.12.1",
6869
"style-loader": "^0.23.1",
69-
"styled-jsx": "^3.1.0",
70+
"styled-jsx": "^3.1.1",
7071
"watch": "^1.0.2",
7172
"webpack": "^4.25.1",
7273
"webpack-cli": "^3.1.2",

package.json

+8-7
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"author": "Chris Parmer <[email protected]>",
2828
"license": "MIT",
2929
"dependencies": {
30-
"babel-plugin-transform-object-rest-spread": "^6.26.0",
3130
"cross-env": "^5.2.0",
3231
"eslint": "^5.8.0",
3332
"eslint-config-prettier": "^3.0.1",
@@ -48,12 +47,14 @@
4847
"react-with-direction": "^1.3.0"
4948
},
5049
"devDependencies": {
51-
"babel-core": "^6.26.3",
52-
"babel-eslint": "^8.2.6",
50+
"@babel/core": "^7.1.5",
51+
"babel-core": "^7.0.0-bridge.0",
52+
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
53+
"@babel/preset-env": "^7.1.5",
54+
"@babel/preset-react": "^7.0.0",
55+
"babel-eslint": "^10.0.1",
56+
"babel-loader": "^8.0.4",
5357
"babel-jest": "^23.6.0",
54-
"babel-loader": "^7.1.4",
55-
"babel-preset-env": "^1.7.0",
56-
"babel-preset-react": "^6.24.1",
5758
"component-playground": "^3.0.0",
5859
"copyfiles": "^2.0.0",
5960
"css-loader": "^1.0.1",
@@ -66,7 +67,7 @@
6667
"react-dom": "^16.6.1",
6768
"regenerator-runtime": "^0.12.1",
6869
"style-loader": "^0.23.1",
69-
"styled-jsx": "^3.1.0",
70+
"styled-jsx": "^3.1.1",
7071
"watch": "^1.0.2",
7172
"webpack": "^4.25.1",
7273
"webpack-cli": "^3.1.2",

0 commit comments

Comments
 (0)