Skip to content

Commit d33b9b3

Browse files
authored
migrate to Babel v7 (#67)
1 parent 447daed commit d33b9b3

File tree

3 files changed

+1222
-2030
lines changed

3 files changed

+1222
-2030
lines changed

.babelrc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
{
2-
"presets": ["es2015"],
2+
"presets": [
3+
[
4+
"@babel/preset-env", {
5+
"targets": {
6+
"node": "4"
7+
}
8+
}
9+
]
10+
],
311
"plugins": [
4-
"transform-object-rest-spread",
5-
"transform-flow-strip-types",
12+
"@babel/transform-flow-strip-types",
613
]
714
}

package.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,12 @@
3030
"jest": "jest --coverage __tests__/**/*"
3131
},
3232
"devDependencies": {
33-
"babel-cli": "^6.26.0",
34-
"babel-core": "^6.26.3",
33+
"@babel/cli": "^7.7.7",
34+
"@babel/core": "^7.7.7",
35+
"@babel/plugin-transform-flow-strip-types": "^7.7.4",
36+
"@babel/preset-env": "^7.7.7",
3537
"babel-eslint": "^10.0.3",
36-
"babel-jest": "^23.6.0",
37-
"babel-plugin-transform-es2015-template-literals": "^6.22.0",
38-
"babel-plugin-transform-flow-strip-types": "^6.22.0",
39-
"babel-plugin-transform-object-rest-spread": "^6.26.0",
40-
"babel-polyfill": "^6.26.0",
41-
"babel-preset-es2015": "^6.24.1",
38+
"babel-jest": "^24.9.0",
4239
"coveralls": "^3.0.9",
4340
"eslint": "^6.7.2",
4441
"eslint-config-prettier": "^6.7.0",
@@ -47,7 +44,7 @@
4744
"expect": "^24.9.0",
4845
"flow-bin": "^0.105.0",
4946
"in-publish": "^2.0.0",
50-
"jest": "^23.6.0",
47+
"jest": "^24.9.0",
5148
"jscodeshift": "^0.6.4",
5249
"minimist": "^1.2.0",
5350
"object.assign": "^4.1.0",
@@ -61,6 +58,7 @@
6158
},
6259
"license": "MIT",
6360
"dependencies": {
61+
"@babel/runtime": "^7.7.7",
6462
"ast-types-flow": "^0.0.7",
6563
"jsx-ast-utils": "^2.2.3"
6664
},

0 commit comments

Comments
 (0)