From a727626453e148bc92e2139d95b220b34f7fa960 Mon Sep 17 00:00:00 2001 From: Bin <124781335@qq.com> Date: Fri, 15 Apr 2022 14:43:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(webpack5):=20=E4=BF=AE=E5=A4=8Dmodule.=5Fid?= =?UTF-8?q?entifier=E4=B8=BAundefined=E8=BF=94=E5=9B=9Etrue=EF=BC=8C?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E9=A1=B5=E9=9D=A2=E7=A9=BA=E7=99=BD=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../taro-webpack5-runner/src/plugins/MiniSplitChunksPlugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/taro-webpack5-runner/src/plugins/MiniSplitChunksPlugin.ts b/packages/taro-webpack5-runner/src/plugins/MiniSplitChunksPlugin.ts index 59d2c5e4a0b0..219ab67e727a 100644 --- a/packages/taro-webpack5-runner/src/plugins/MiniSplitChunksPlugin.ts +++ b/packages/taro-webpack5-runner/src/plugins/MiniSplitChunksPlugin.ts @@ -711,7 +711,7 @@ export default class MiniSplitChunksPlugin extends SplitChunksPlugin { name: cacheGroupName, test: module => { if (!module.resource) { - return module._identifier === depInfo.identifier + return !!module._identifier && module._identifier === depInfo.identifier } return module.resource === depInfo.resource },