From f537708fab2085998fca76ae223666c9937cf8e7 Mon Sep 17 00:00:00 2001 From: lihong Date: Fri, 7 Jan 2022 16:36:48 +0800 Subject: [PATCH] fixed cdef7c5 from https://gitee.com/lihong67/developtools_ace-ets2bundle/pulls/134 lihong67@huawei.com exclude workers file. Signed-off-by: lihong Change-Id: I99f2fe4d1c7f7a75b0831286659e7d6f67d9e561 --- compiler/webpack.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/webpack.config.js b/compiler/webpack.config.js index d8da28cc6..bebea8d56 100644 --- a/compiler/webpack.config.js +++ b/compiler/webpack.config.js @@ -48,20 +48,20 @@ function initConfig(config) { }, optimization: { splitChunks: { - chunks: "all", + chunks(chunk) { + return !/^\.\/workers\//.test(chunk.name); + }, minSize: 0, cacheGroups: { vendors: { test: /[\\/]node_modules[\\/]/, priority: -10, name: "vendors", - chunks: 'initial' }, commons: { name: 'commons', priority: -20, minChunks: 2, - chunks: 'initial', reuseExistingChunk: true } } -- Gitee