Skip to content

Commit e54da66

Browse files
Upgrade: Updates babel suite to version 7.x
Updates the whole babel ecosystem to version 7.
1 parent 274d7a8 commit e54da66

File tree

3 files changed

+1523
-1788
lines changed

3 files changed

+1523
-1788
lines changed

.babelrc

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"presets": ["react", ["es2015", { "loose": true }], "stage-0"],
2+
"presets": ["@babel/preset-react", "@babel/preset-env"],
33
"plugins": [
4-
"transform-decorators-legacy"
4+
["@babel/plugin-proposal-decorators", { "legacy": true }],
5+
"@babel/plugin-proposal-class-properties"
56
]
67
}

package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@
2929
"prop-types": "^15.6.2"
3030
},
3131
"devDependencies": {
32+
"@babel/cli": "^7.6.4",
33+
"@babel/core": "^7.6.4",
34+
"@babel/plugin-proposal-class-properties": "^7.5.5",
35+
"@babel/plugin-proposal-decorators": "^7.6.0",
36+
"@babel/preset-env": "^7.6.3",
37+
"@babel/preset-react": "^7.6.3",
3238
"@semantic-release/changelog": "^3.0.2",
3339
"@semantic-release/git": "^7.0.7",
3440
"@semantic-release/release-notes-generator": "^7.1.4",
3541
"@types/react": "^16.8.18",
36-
"babel-cli": "^6.26.0",
37-
"babel-core": "^6.26.3",
38-
"babel-eslint": "^10.0.1",
39-
"babel-plugin-transform-decorators-legacy": "^1.3.5",
40-
"babel-preset-es2015": "^6.24.1",
41-
"babel-preset-react": "^6.24.1",
42-
"babel-preset-stage-0": "^6.24.1",
42+
"babel-eslint": "^10.0.3",
4343
"commitizen": "^3.1.1",
4444
"conventional-changelog-eslint": "^3.0.1",
4545
"cz-adapter-eslint": "^0.2.0",
@@ -48,7 +48,7 @@
4848
"eslint-plugin-prettier": "^3.1.0",
4949
"eslint-plugin-react": "^7.13.0",
5050
"fbjs": "^1.0.0",
51-
"jest": "^23.6.0",
51+
"jest": "^24.9.0",
5252
"jsdom": "^15.0.0",
5353
"prettier": "^1.17.1",
5454
"react": "^16.8.6",

0 commit comments

Comments
 (0)