mirror of https://github.com/webpack/webpack.git
Pass shareScope through to ContainerPlugin & ContainerReferencePlugin
This commit is contained in:
parent
1132eb3f38
commit
1492735309
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue