diff --git a/packages/compartment-mapper/src/link.js b/packages/compartment-mapper/src/link.js index fa529a309a..ea5a74b3c8 100644 --- a/packages/compartment-mapper/src/link.js +++ b/packages/compartment-mapper/src/link.js @@ -259,7 +259,10 @@ const makeModuleMapHook = ( )}}`, ); } - return foreignCompartment.module(foreignModuleSpecifier); + return { + compartment: foreignCompartment, + specifier: foreignModuleSpecifier, + }; } } @@ -310,7 +313,10 @@ const makeModuleMapHook = ( compartment: foreignCompartmentName, module: foreignModuleSpecifier, }; - return foreignCompartment.module(foreignModuleSpecifier); + return { + compartment: foreignCompartment, + specifier: foreignModuleSpecifier, + }; } }