Skip to content

Commit

Permalink
fix(angular): apply default eager packages correctly #10496 (#10596)
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Jun 6, 2022
1 parent 9b47c97 commit 339b129
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/angular/src/utils/mfe/with-module-federation.ts
Expand Up @@ -226,12 +226,10 @@ function applyDefaultEagerPackages(
) {
const DEFAULT_PACKAGES_TO_LOAD_EAGERLY = ['@angular/localize/init'];
for (const pkg of DEFAULT_PACKAGES_TO_LOAD_EAGERLY) {
if (sharedConfig[pkg]) {
return {
...sharedConfig,
eager: true,
};
}
sharedConfig[pkg] = {
...(sharedConfig[pkg] ?? {}),
eager: true,
};
}
}

Expand Down

0 comments on commit 339b129

Please sign in to comment.