From 7ecc8b0cbaad47e4bd71c5a91335ca02a4ccdda7 Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Thu, 19 Sep 2024 17:34:05 +0100 Subject: [PATCH] fix --- js-packages/webpack-config/src/RegisterAsyncChunksPlugin.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js-packages/webpack-config/src/RegisterAsyncChunksPlugin.cjs b/js-packages/webpack-config/src/RegisterAsyncChunksPlugin.cjs index 691cb50dc..66e936139 100644 --- a/js-packages/webpack-config/src/RegisterAsyncChunksPlugin.cjs +++ b/js-packages/webpack-config/src/RegisterAsyncChunksPlugin.cjs @@ -112,7 +112,7 @@ class RegisterAsyncChunksPlugin { // This is a chunk with many modules, we need to register all of them. modules?.forEach((module) => { - if (!module.resource.includes(`${path.sep}src${path.sep}`)) { + if (!module.resource?.includes(`${path.sep}src${path.sep}`)) { return; }