From 67e6d3a3b127cb28e1eac435a3bf6022e45b8f94 Mon Sep 17 00:00:00 2001 From: jian Date: Thu, 14 Sep 2023 22:45:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1=20=E5=9B=9E?= =?UTF-8?q?=E9=80=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/webpack/attachments.js | 6 +-- packages/fineui/webpack/webpack.prod.js | 49 +++++++++++++------------ 2 files changed, 26 insertions(+), 29 deletions(-) diff --git a/packages/fineui/webpack/attachments.js b/packages/fineui/webpack/attachments.js index edee137f1..6bb4b8110 100644 --- a/packages/fineui/webpack/attachments.js +++ b/packages/fineui/webpack/attachments.js @@ -38,13 +38,9 @@ const fineuiForWorker = [].concat( basicAttachmentMap.ts ); -const fineuiForV8Export = [...fineuiForWorker].concat( - configJS -); - module.exports = { fineui: uniq(fineui), fineuiForWorker: uniq(fineuiForWorker), - fineuiForV8Export: uniq(fineuiForV8Export), + fineuiForV8Export: uniq(fineuiForWorker), bundleCss, }; diff --git a/packages/fineui/webpack/webpack.prod.js b/packages/fineui/webpack/webpack.prod.js index da8fac621..aa32489ea 100644 --- a/packages/fineui/webpack/webpack.prod.js +++ b/packages/fineui/webpack/webpack.prod.js @@ -1,24 +1,25 @@ -const common = require("./webpack.common.js"); -const { merge } = require("webpack-merge"); -const dirs = require("./dirs"); -const attachments = require("./attachments"); - -module.exports = merge(common, { - mode: "production", - target: ["web", "es5"], - - entry: { - "fineui.min": attachments.fineui, - "fineui.worker.min": attachments.fineuiForWorker, - "fineui.worker": attachments.fineuiForWorker, - "fineui_without_jquery_polyfill.min": attachments.fineuiForV8Export, - }, - - output: { - path: dirs.DEST, - filename: "[name].js", - publicPath: "" - }, - - devtool: "hidden-source-map" -}); +const common = require("./webpack.common.js"); +const { merge } = require("webpack-merge"); +const dirs = require("./dirs"); +const attachments = require("./attachments"); + +module.exports = merge(common, { + mode: "production", + target: ["web", "es5"], + + entry: { + "fineui.min": attachments.fineui, + "fineui.worker.min": attachments.fineuiForWorker, + "fineui.worker": attachments.fineuiForWorker, + "fineui_without_jquery_polyfill.min": attachments.fineuiForWorker, + "fineui_without_jquery_polyfill": attachments.fineuiForWorker, + }, + + output: { + path: dirs.DEST, + filename: "[name].js", + publicPath: "" + }, + + devtool: "hidden-source-map" +});