diff --git a/.babelrc b/.babelrc index c13c5f627..7ead2dd9c 100644 --- a/.babelrc +++ b/.babelrc @@ -1,3 +1,9 @@ { - "presets": ["es2015"] + "presets": [ + ["env", { + "targets": { + "node": "4" + } + }] + ] } diff --git a/package.json b/package.json index 8383c035c..3c9f6df10 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "babel-core": "^6.18.0", "babel-jest": "^16.0.0", "babel-plugin-transform-es2015-block-scoping": "^6.18.0", - "babel-preset-es2015": "^6.18.0", + "babel-preset-env": "^0.0.8", "babel-traverse": "^6.16.0", "bytes": "^2.1.0", "chalk": "^1.1.3", diff --git a/packages/babel-plugin-minify-mangle-names/__tests__/mangle-names-test.js b/packages/babel-plugin-minify-mangle-names/__tests__/mangle-names-test.js index 29393761d..fd64af173 100644 --- a/packages/babel-plugin-minify-mangle-names/__tests__/mangle-names-test.js +++ b/packages/babel-plugin-minify-mangle-names/__tests__/mangle-names-test.js @@ -726,7 +726,7 @@ describe("mangle-names", () => { `); const ast = babel.transform(source, { - presets: ["es2015"], + presets: ["env"], sourceType: "script", code: false }).ast;