From f271573c89f787d898afc8b30adcbefd9de6494f Mon Sep 17 00:00:00 2001 From: zsmj Date: Thu, 9 Feb 2023 15:23:06 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=97=A0JIRA=20=E7=94=A8core-js/stable?= =?UTF-8?q?=E6=9B=BF=E4=BB=A3=E5=B7=B2=E7=BB=8F=E5=BA=9F=E5=BC=83=E7=9A=84?= =?UTF-8?q?@babel/polyfill?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 不然有些array.prototype.flat, includes等都用不了 --- webpack/attachments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack/attachments.js b/webpack/attachments.js index acb30ad2a..befe73db1 100644 --- a/webpack/attachments.js +++ b/webpack/attachments.js @@ -7,7 +7,7 @@ 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 = ["@babel/polyfill", "es6-promise/auto"]; +const runtimePolyfill = ["core-js/stable"]; const basicAttachmentMap = { polyfill: sync([ From 59b7d2eb697c5810e91917939321ed808c932ccf Mon Sep 17 00:00:00 2001 From: zsmj Date: Thu, 9 Feb 2023 15:23:27 +0800 Subject: [PATCH 2/2] update --- package.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index cd08060b2..43fe4b3fe 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,7 @@ }, "devDependencies": { "@babel/core": "^7.17.4", - "@babel/polyfill": "7.6.0", - "@fui/babel-preset-fineui": "^2.0.0", + "@fui/babel-preset-fineui": "^3.0.0", "@fui/eslint-plugin": "^1.0.19", "@types/node": "15.6.1", "@typescript-eslint/eslint-plugin": "2.33.0", @@ -18,7 +17,6 @@ "autoprefixer": "9.6.1", "babel-loader": "8.0.6", "chai": "4.2.0", - "cnpm": "6.1.1", "concat": "1.0.3", "core-js": "3.3.2", "cross-env": "6.0.0", @@ -91,4 +89,4 @@ "jquery": "3.6.3", "yargs": "17.6.2" } -} \ No newline at end of file +}