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