Skip to content

Commit

Permalink
fix(angular): missing remotes form mf config should not break mf serv…
Browse files Browse the repository at this point in the history
…er (#13901)
  • Loading branch information
Coly010 authored Dec 20, 2022
1 parent e12922b commit dc4a123
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/angular/src/builders/utilities/module-federation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ export function getStaticRemotes(
);
}

const remotesConfig = mfeConfig.remotes.length > 0 ? mfeConfig.remotes : [];
const remotesConfig =
Array.isArray(mfeConfig.remotes) && mfeConfig.remotes.length > 0
? mfeConfig.remotes
: [];
const staticRemotes = remotesConfig
.map((remoteDefinition) =>
Array.isArray(remoteDefinition) ? remoteDefinition[0] : remoteDefinition
Expand Down

0 comments on commit dc4a123

Please sign in to comment.