From 84b451312b12cf6f239cae9cf484f2d5ad6f9d08 Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Fri, 20 Sep 2024 13:36:37 -0700 Subject: [PATCH] fix(compartment-mapper): remove unneeded code from import-lite --- packages/compartment-mapper/src/import-lite.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/compartment-mapper/src/import-lite.js b/packages/compartment-mapper/src/import-lite.js index d0beecf111..6989ee3379 100644 --- a/packages/compartment-mapper/src/import-lite.js +++ b/packages/compartment-mapper/src/import-lite.js @@ -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,