Skip to content

Commit

Permalink
fix(enhanced): should not inject runtime into the 'build time chunk'
Browse files Browse the repository at this point in the history
  • Loading branch information
lnlfps authored and lnlfps committed Nov 15, 2024
1 parent a50b000 commit 6b6621d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@ class FederationRuntimePlugin {
this.constructor.name,
(compilation: Compilation) => {
const handler = (chunk: Chunk, runtimeRequirements: Set<string>) => {
if (chunk.id === 'build time chunk') {
return;
}
if (runtimeRequirements.has(federationGlobal)) return;
runtimeRequirements.add(federationGlobal);
runtimeRequirements.add(RuntimeGlobals.interceptModuleExecution);
Expand Down

0 comments on commit 6b6621d

Please sign in to comment.