diff --git a/build.js b/build.js index 28aa0d4..f0b42dd 100644 --- a/build.js +++ b/build.js @@ -14,16 +14,7 @@ rollup ], plugins: [ babel({ - presets: [ - [ - 'env', - { - modules: false, - loose: true, - targets: { node: 4 } - } - ] - ], + presets: [['latest', { es2015: { modules: false, loose: true } }]], plugins: ['ramda', 'external-helpers'] }) ] diff --git a/package.json b/package.json index 0c8d25a..8c3a080 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "devDependencies": { "babel-plugin-external-helpers": "^6.22.0", "babel-plugin-ramda": "^1.2.0", - "babel-preset-env": "^1.5.1", + "babel-preset-latest": "^6.24.1", "chai": "^4.0.1", "codecov": "^2.2.0", "husky": "^0.13.4",