From eec6e4aa2bc174beada9dbbdea246fec9716b4bf Mon Sep 17 00:00:00 2001 From: Srikanth Adi Date: Thu, 3 May 2018 15:16:57 +0530 Subject: [PATCH] Use env over es2015 --- automation/building.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/automation/building.js b/automation/building.js index cfa4c63b..9b450a9b 100644 --- a/automation/building.js +++ b/automation/building.js @@ -24,7 +24,7 @@ gulp.task("babel", function () { function babelFunc(){ return gulp.src("src/**/*") .pipe(babel({ - presets: ['es2015', 'stage-3'] + presets: ['env', 'stage-3'] })) .pipe(gulp.dest("bin/")); } diff --git a/package.json b/package.json index 5ca771fb..58074173 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "babel-cli": "^6.24.1", "babel-core": "^6.24.1", "babel-loader": "^7.0.0", - "babel-preset-es2015": "^6.24.1", + "babel-preset-env": "^1.6.1", "babel-preset-stage-3": "6.24.1", "blanket": "^1.2.3", "canvas": "^1.6.5",