Skip to content

Commit

Permalink
fix(module-federation): optimization should not be overwritten #27201
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Aug 12, 2024
1 parent 3c2c462 commit bdd485e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export async function withModuleFederationForSSR(
config.target = false;
config.output.uniqueName = options.name;
config.optimization = {
...(config.optimization ?? {}),
runtimeChunk: false,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export async function withModuleFederation(
}

config.optimization = {
...(config.optimization ?? {}),
runtimeChunk: false,
};

Expand Down

0 comments on commit bdd485e

Please sign in to comment.