fix(angular): add @angular/localize to list of default packages to be eagerly loaded in mf apps (#11189)

This commit is contained in:
Leosvel Pérez Espinosa 2022-07-18 18:02:11 +01:00 committed by GitHub
parent 6866122db8
commit b7a1cd30fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -224,7 +224,10 @@ function applyAdditionalShared(
function applyDefaultEagerPackages(
sharedConfig: Record<string, SharedLibraryConfig>
) {
const DEFAULT_PACKAGES_TO_LOAD_EAGERLY = ['@angular/localize/init'];
const DEFAULT_PACKAGES_TO_LOAD_EAGERLY = [
'@angular/localize',
'@angular/localize/init',
];
for (const pkg of DEFAULT_PACKAGES_TO_LOAD_EAGERLY) {
sharedConfig[pkg] = {
...(sharedConfig[pkg] ?? {}),