We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e12922b commit dc4a123Copy full SHA for dc4a123
packages/angular/src/builders/utilities/module-federation.ts
@@ -86,7 +86,10 @@ export function getStaticRemotes(
86
);
87
}
88
89
- const remotesConfig = mfeConfig.remotes.length > 0 ? mfeConfig.remotes : [];
+ const remotesConfig =
90
+ Array.isArray(mfeConfig.remotes) && mfeConfig.remotes.length > 0
91
+ ? mfeConfig.remotes
92
+ : [];
93
const staticRemotes = remotesConfig
94
.map((remoteDefinition) =>
95
Array.isArray(remoteDefinition) ? remoteDefinition[0] : remoteDefinition
0 commit comments