Pass shareScope through to ContainerPlugin & ContainerReferencePlugin

This commit is contained in:
Evan Dower 2022-07-08 22:51:16 -07:00
parent 1132eb3f38
commit 1492735309
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,7 @@ class ModuleFederationPlugin {
library,
filename: options.filename,
runtime: options.runtime,
shareScope: options.shareScope,
exposes: options.exposes
}).apply(compiler);
}
@ -76,6 +77,7 @@ class ModuleFederationPlugin {
) {
new ContainerReferencePlugin({
remoteType,
shareScope: options.shareScope,
remotes: options.remotes
}).apply(compiler);
}