Skip to content

Commit

Permalink
fix: code split fails with common module (#4151)
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 authored Jan 3, 2025
1 parent 38e1b49 commit 5d26485
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js-packages/webpack-config/src/RegisterAsyncChunksPlugin.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ class RegisterAsyncChunksPlugin {

if (
!chunkModuleMemory[sourceChunkId].includes(urlPath) &&
!RegisterAsyncChunksPlugin.registry[`${chunkId}:${moduleId}:${namespace}`]?.includes(urlPath)
!RegisterAsyncChunksPlugin.registry[`${sourceChunkId}:${chunkId}:${moduleId}:${namespace}`]?.includes(urlPath)
) {
reg.push(`flarum.reg.addChunkModule('${chunkId}', '${moduleId}', '${namespace}', '${urlPath}');`);
chunkModuleMemory[sourceChunkId].push(urlPath);
RegisterAsyncChunksPlugin.registry[`${chunkId}:${moduleId}:${namespace}`] ||= [];
RegisterAsyncChunksPlugin.registry[`${chunkId}:${moduleId}:${namespace}`].push(urlPath);
RegisterAsyncChunksPlugin.registry[`${sourceChunkId}:${chunkId}:${moduleId}:${namespace}`] ||= [];
RegisterAsyncChunksPlugin.registry[`${sourceChunkId}:${chunkId}:${moduleId}:${namespace}`].push(urlPath);
}
});

Expand Down

0 comments on commit 5d26485

Please sign in to comment.