Update ModuleFederationPlugin.js

This commit is contained in:
Zack Jackson 2024-09-29 16:57:37 -07:00 committed by ScriptedAlchemy
parent 80a6b339c9
commit 07670cf9e8
1 changed files with 1 additions and 1 deletions

View File

@ -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"])