From f4d62545adc18e77bc69f78da51598f91ce2c551 Mon Sep 17 00:00:00 2001 From: yelo Date: Fri, 21 Dec 2018 22:08:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20babel=20=E6=89=BE=E4=B8=8D?= =?UTF-8?q?=E5=88=B0=20preset=20=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 364ee09..75efbe7 100644 --- a/index.js +++ b/index.js @@ -78,7 +78,7 @@ function copyPolyFill (shimPath, dest) { // 第一次批量处理 contents = babel.transform(contents, { presets: [ - ['es2015', { modules: false }] + [require.resolve('babel-preset-es2015'), { modules: false }] ], comments: false, }).code