From 0bfa73dddc8b28e6258805cf8c4c2a60ea5b267d Mon Sep 17 00:00:00 2001 From: iapyang Date: Mon, 5 Sep 2022 19:51:08 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20without=20jquery=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E4=B8=80=E4=BA=9Bruntime=E8=AF=AD=E6=B3=95=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webpack/attachments.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/webpack/attachments.js b/webpack/attachments.js index cf26e9d09..8c7424f14 100644 --- a/webpack/attachments.js +++ b/webpack/attachments.js @@ -7,8 +7,14 @@ const workerCompact = './dist/fix/worker.compact.js'; const lodashJs = "src/core/1.lodash.js"; const jqueryJs = "src/core/platform/web/jquery/_jquery.js"; +const runtimePolyfill = sync(["@babel/polyfill", "es6-promise/auto"]); + const basicAttachmentMap = { - polyfill: sync(["src/core/0.foundation.js", "src/polyfill/**/*.js"]).concat(["@babel/polyfill", "es6-promise/auto"]), + polyfill: sync([ + "src/core/0.foundation.js", + "src/polyfill/**/*.js", + ...runtimePolyfill, + ]), core: sync([ "src/less/core/**/*.less", "src/less/theme/**/*.less", @@ -202,6 +208,7 @@ const fineuiProxy = [].concat( ); const fineuiWithoutJqueryAndPolyfillJs = [].concat( + runtimePolyfill, sync([ "src/core/0.foundation.js", lodashJs,