fix(misc): shared deps that rely on default configuration are filtered out (#16193)
Co-authored-by: Dmitry Marcautan <dmitry.marcautan@infopulse.com>
This commit is contained in:
parent
98501aa56b
commit
432e07440e
@ -60,10 +60,10 @@ export async function getModuleFederationConfig(
|
||||
|
||||
if (mfConfig.shared) {
|
||||
dependencies.workspaceLibraries = dependencies.workspaceLibraries.filter(
|
||||
(lib) => mfConfig.shared(lib.importKey, {})
|
||||
(lib) => mfConfig.shared(lib.importKey, {}) !== false
|
||||
);
|
||||
dependencies.npmPackages = dependencies.npmPackages.filter((pkg) =>
|
||||
mfConfig.shared(pkg, {})
|
||||
dependencies.npmPackages = dependencies.npmPackages.filter(
|
||||
(pkg) => mfConfig.shared(pkg, {}) !== false
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -40,10 +40,10 @@ export async function getModuleFederationConfig(
|
||||
|
||||
if (mfConfig.shared) {
|
||||
dependencies.workspaceLibraries = dependencies.workspaceLibraries.filter(
|
||||
(lib) => mfConfig.shared(lib.importKey, {})
|
||||
(lib) => mfConfig.shared(lib.importKey, {}) !== false
|
||||
);
|
||||
dependencies.npmPackages = dependencies.npmPackages.filter((pkg) =>
|
||||
mfConfig.shared(pkg, {})
|
||||
dependencies.npmPackages = dependencies.npmPackages.filter(
|
||||
(pkg) => mfConfig.shared(pkg, {}) !== false
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user