Skip to content

Commit 12eef31

Browse files
committed
chore(babel): use env preset
1 parent 330dc83 commit 12eef31

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

Diff for: .babelrc

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
{
2-
"presets": ["es2015"],
3-
"plugins": ["transform-class-properties"]
4-
}
2+
"plugins": ["transform-class-properties"],
3+
"presets": [
4+
["env", {
5+
"targets": {
6+
"node": "6.10"
7+
}
8+
}]
9+
]
10+
}

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@
3939
"dependencies": {
4040
"babel-core": "^6.20.0",
4141
"babel-eslint": "^7.1.0",
42-
"babel-register": "^6.22.0",
4342
"babel-plugin-syntax-class-properties": "^6.13.0",
4443
"babel-plugin-syntax-flow": "^6.18.0",
4544
"babel-plugin-transform-flow-strip-types": "^6.18.0",
45+
"babel-preset-env": "^1.7.0",
46+
"babel-register": "^6.22.0",
4647
"bluebird": "^3.4.5",
4748
"chalk": "^2.1.0",
4849
"glob": "^7.0.5",

0 commit comments

Comments
 (0)