fix(angular): fix angular mfe when use NormalModuleReplacementPlugin with path alias ends with /* (#10355)
This commit is contained in:
parent
70f1a6b781
commit
f25e94a5dc
@ -79,7 +79,11 @@ export function shareWorkspaceLibraries(
|
|||||||
|
|
||||||
for (const library of pathMappings) {
|
for (const library of pathMappings) {
|
||||||
const libFolder = normalize(dirname(library.path));
|
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;
|
req.request = library.name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user