Skip to content

Commit 311a46e

Browse files
committed
Use babel-preset-env.
1 parent 9c87370 commit 311a46e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.babelrc

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
2-
"presets": ["es2015"],
2+
"presets": [["env", {
3+
"targets": {
4+
"node": 4
5+
}
6+
}]],
37
"plugins": ["add-module-exports"],
48
"env": {
59
"development": {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"babel-core": "^6.21.0",
2727
"babel-eslint": "^7.1.1",
2828
"babel-plugin-add-module-exports": "^0.2.1",
29-
"babel-preset-es2015": "^6.18.0",
29+
"babel-preset-env": "^1.4.0",
3030
"babel-register": "^6.18.0",
3131
"cross-env": "^3.1.4",
3232
"del-cli": "^0.2.1",

0 commit comments

Comments
 (0)