From 6cfeaf2da9a9608c291a9b99b2a6f4f6f43573fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=93=B6=E5=BC=B9?= Date: Sun, 7 Jan 2018 12:58:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20use=20`babel-preset-es2015-ie`=20to=20ad?= =?UTF-8?q?apt=20ios8.x=E3=80=81Android4.x=20and=20the=20low=20version=20o?= =?UTF-8?q?f=20web=20browser=20engines(eg:UC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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..a194e17f 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: ['es2015-ie', 'stage-3'] })) .pipe(gulp.dest("bin/")); } diff --git a/package.json b/package.json index 0700552c..e87604c5 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-es2015-ie": "^6.7.0", "babel-preset-stage-3": "6.24.1", "blanket": "^1.2.3", "canvas": "^1.6.5",