From 4261217d5ce9155c56dd9e3bd382f12b0b7be6e2 Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Thu, 13 Jun 2024 17:35:22 -0700 Subject: [PATCH] refactor(compartment-mapper): Use module descriptor in the stead of comaprtment.module() --- packages/compartment-mapper/src/link.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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, + }; } }