Skip to content

Commit

Permalink
fix(angular): fix angular mfe when use NormalModuleReplacementPlugin …
Browse files Browse the repository at this point in the history
…with path alias ends with /* (#10355)
  • Loading branch information
yinshuxun committed May 18, 2022
1 parent 70f1a6b commit f25e94a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/angular/src/utils/mfe/mfe-webpack.ts
Expand Up @@ -79,7 +79,11 @@ export function shareWorkspaceLibraries(

for (const library of pathMappings) {
const libFolder = normalize(dirname(library.path));
if (!from.startsWith(libFolder) && to.startsWith(libFolder)) {
if (
!from.startsWith(libFolder) &&
to.startsWith(libFolder) &&
!library.name.endsWith('/*')
) {
req.request = library.name;
}
}
Expand Down

0 comments on commit f25e94a

Please sign in to comment.