Skip to content

Commit 68b5d22

Browse files
authored
Merge pull request #880 from baer/feature/use-babel-preset-env
Use babel-preset-env
2 parents 11f776b + b1f56c7 commit 68b5d22

File tree

2 files changed

+15
-33
lines changed

2 files changed

+15
-33
lines changed

.babelrc

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
11
{
2+
"presets": [["env", {
3+
"targets": {
4+
"node": 4,
5+
"browsers": [
6+
"ie 9",
7+
"ios 9",
8+
"last 2 chrome versions",
9+
"last 2 edge versions",
10+
"last 2 firefox versions",
11+
]
12+
}
13+
}]],
214
"plugins": [
315
"./resources/inline-invariant",
416
"syntax-async-functions",
517
"syntax-async-generators",
618
"transform-class-properties",
19+
"transform-es3-property-literals",
720
"transform-flow-strip-types",
821
"transform-object-rest-spread",
9-
"transform-es2015-template-literals",
10-
"transform-es2015-literals",
11-
"transform-es2015-function-name",
12-
"transform-es2015-arrow-functions",
13-
"transform-es2015-block-scoped-functions",
1422
["transform-es2015-classes", {"loose": true}],
15-
"transform-es2015-object-super",
16-
"transform-es2015-shorthand-properties",
17-
"transform-es2015-duplicate-keys",
18-
"transform-es2015-computed-properties",
19-
"check-es2015-constants",
20-
["transform-es2015-spread", {"loose": true}],
21-
"transform-es2015-parameters",
2223
["transform-es2015-destructuring", {"loose": true}],
23-
"transform-es2015-block-scoping",
24-
"transform-es2015-modules-commonjs",
25-
"transform-regenerator",
26-
"transform-es3-property-literals"
24+
["transform-es2015-spread", {"loose": true}]
2725
]
2826
}

package.json

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -42,29 +42,13 @@
4242
"devDependencies": {
4343
"babel-cli": "6.24.1",
4444
"babel-eslint": "7.2.3",
45-
"babel-plugin-check-es2015-constants": "6.22.0",
4645
"babel-plugin-syntax-async-functions": "6.13.0",
4746
"babel-plugin-syntax-async-generators": "6.13.0",
4847
"babel-plugin-transform-class-properties": "6.24.1",
49-
"babel-plugin-transform-es2015-arrow-functions": "6.22.0",
50-
"babel-plugin-transform-es2015-block-scoped-functions": "6.22.0",
51-
"babel-plugin-transform-es2015-block-scoping": "6.24.1",
52-
"babel-plugin-transform-es2015-classes": "6.24.1",
53-
"babel-plugin-transform-es2015-computed-properties": "6.24.1",
54-
"babel-plugin-transform-es2015-destructuring": "6.23.0",
55-
"babel-plugin-transform-es2015-duplicate-keys": "6.24.1",
56-
"babel-plugin-transform-es2015-function-name": "6.24.1",
57-
"babel-plugin-transform-es2015-literals": "6.22.0",
58-
"babel-plugin-transform-es2015-modules-commonjs": "6.24.1",
59-
"babel-plugin-transform-es2015-object-super": "6.24.1",
60-
"babel-plugin-transform-es2015-parameters": "6.24.1",
61-
"babel-plugin-transform-es2015-shorthand-properties": "6.24.1",
62-
"babel-plugin-transform-es2015-spread": "6.22.0",
63-
"babel-plugin-transform-es2015-template-literals": "6.22.0",
6448
"babel-plugin-transform-es3-property-literals": "6.22.0",
6549
"babel-plugin-transform-flow-strip-types": "6.22.0",
6650
"babel-plugin-transform-object-rest-spread": "6.23.0",
67-
"babel-plugin-transform-regenerator": "6.24.1",
51+
"babel-preset-env": "^1.5.2",
6852
"chai": "4.0.2",
6953
"chai-json-equal": "0.0.1",
7054
"chai-spies-next": "^0.8.0",

0 commit comments

Comments
 (0)