Skip to content

Commit

Permalink
fix(compartment-mapper): remove unneeded code from import-lite
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Sep 20, 2024
1 parent b8c9a48 commit 84b4513
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/compartment-mapper/src/import-lite.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,7 @@ export const loadFromMap = async (readPowers, compartmentMap, options = {}) => {
Compartment,
}));
} else {
// sync module transforms are allowed, because they are "compatible"
// with async module transforms (not vice-versa)
const moduleTransforms = /** @type {ModuleTransforms} */ ({
...behavior.options.syncModuleTransforms,
...behavior.options.moduleTransforms,
});
const { moduleTransforms } = behavior.options;
({ compartment, pendingJobsPromise } = link(compartmentMap, {
makeImportHook,
parserForLanguage,
Expand Down

0 comments on commit 84b4513

Please sign in to comment.