Skip to content

Commit

Permalink
refactor(compartment-mapper): Use module descriptor in the stead of c…
Browse files Browse the repository at this point in the history
…omaprtment.module()
  • Loading branch information
kriskowal committed Jul 13, 2024
1 parent 6320908 commit e93e409
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/compartment-mapper/src/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,10 @@ const makeModuleMapHook = (
)}}`,
);
}
return foreignCompartment.module(foreignModuleSpecifier);
return {
compartment: foreignCompartment,
specifier: foreignModuleSpecifier,
};
}
}

Expand Down Expand Up @@ -309,7 +312,10 @@ const makeModuleMapHook = (
compartment: foreignCompartmentName,
module: foreignModuleSpecifier,
};
return foreignCompartment.module(foreignModuleSpecifier);
return {
compartment: foreignCompartment,
specifier: foreignModuleSpecifier,
};
}
}

Expand Down

0 comments on commit e93e409

Please sign in to comment.