Skip to content

Commit 02279f8

Browse files
committed
chore(Babel): Migrate on babel-env
1 parent e524745 commit 02279f8

File tree

3 files changed

+733
-465
lines changed

3 files changed

+733
-465
lines changed

.babelrc

Lines changed: 11 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,13 @@
11
{
2-
"env": {
3-
"development": {
4-
"passPerPreset": true,
5-
"presets": [
6-
{ "plugins": [ "transform-runtime" ] },
7-
{
8-
"passPerPreset": false,
9-
"presets": ["es2015"]
10-
}
11-
],
12-
"plugins": [
13-
"syntax-async-functions",
14-
"transform-regenerator",
15-
"transform-class-properties",
16-
"transform-object-rest-spread",
17-
"transform-flow-strip-types"
18-
]
19-
},
20-
"es": {
21-
"presets": [
22-
["es2015", {"modules": false}]
23-
],
24-
"plugins": [
25-
"syntax-async-functions",
26-
["transform-regenerator", {
27-
"async": false
28-
}],
29-
"transform-class-properties",
30-
"transform-object-rest-spread",
31-
"transform-flow-strip-types",
32-
]
33-
}
34-
}
2+
"plugins": [
3+
"transform-object-rest-spread",
4+
"transform-flow-strip-types"
5+
],
6+
"presets": [
7+
["env", {
8+
"targets": {
9+
"node": 4
10+
},
11+
}]
12+
],
3513
}

package.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
},
2626
"homepage": "https://github.com/nodkz/graphql-compose-mongoose",
2727
"dependencies": {
28-
"babel-runtime": "^6.23.0",
2928
"object-path": "^0.11.4"
3029
},
3130
"peerDependencies": {
@@ -36,15 +35,10 @@
3635
},
3736
"devDependencies": {
3837
"babel-cli": "^6.24.1",
39-
"babel-core": "^6.24.1",
4038
"babel-eslint": "^7.2.3",
41-
"babel-plugin-syntax-async-functions": "6.13.0",
42-
"babel-plugin-transform-class-properties": "^6.24.1",
4339
"babel-plugin-transform-flow-strip-types": "^6.22.0",
4440
"babel-plugin-transform-object-rest-spread": "^6.23.0",
45-
"babel-plugin-transform-regenerator": "^6.24.1",
46-
"babel-plugin-transform-runtime": "^6.23.0",
47-
"babel-preset-es2015": "^6.24.1",
41+
"babel-preset-env": "^1.5.1",
4842
"cz-conventional-changelog": "^2.0.0",
4943
"eslint": "^3.19.0",
5044
"eslint-config-airbnb-base": "^11.2.0",

0 commit comments

Comments
 (0)