mirror of https://github.com/webpack/webpack.git
Update ModuleFederationPlugin.js
This commit is contained in:
parent
80a6b339c9
commit
07670cf9e8
|
@ -58,7 +58,7 @@ class ModuleFederationPlugin {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
let hooks = compilationHooksMap.get(compilation);
|
let hooks = compilationHooksMap.get(compilation);
|
||||||
if (hooks === undefined) {
|
if (!hooks) {
|
||||||
hooks = {
|
hooks = {
|
||||||
addContainerEntryModule: new SyncHook(["dependency"]),
|
addContainerEntryModule: new SyncHook(["dependency"]),
|
||||||
addFederationRuntimeModule: new SyncHook(["module"])
|
addFederationRuntimeModule: new SyncHook(["module"])
|
||||||
|
|
Loading…
Reference in New Issue