fix(angular): fix angular mfe when use NormalModuleReplacementPlugin with path alias ends with /* (#10355)

This commit is contained in:
yinshuxun 2022-05-18 16:20:25 +08:00 committed by GitHub
parent 70f1a6b781
commit f25e94a5dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}