refactor(compartment-mapper): Thread module record through importHook machinery
This is necessary for the upcoming bundler, itself a variation on the
archiver, to analyze the import/export graph of the collected module
sources.
MODIFY
packages/compartment-mapper/src/import-hook.js
packages/compartment-mapper/src/import-hook.js
@@ -114,6 +114,7 @@ export const makeImportHookMaker = (
location: packageRelativeLocation,
parser,
bytes: transformedBytes,
+ record,
};
return record;
}

MODIFY
packages/compartment-mapper/src/types.js
packages/compartment-mapper/src/types.js
* @property {Uint8Array} [bytes]
* @property {Language} [parser]
* @property {string} [exit]
+ * @property {FinalStaticModuleType} [record]
*/
/**

refactor(compartment-mapper): Thread module record through importHook machinery

This is necessary for the upcoming bundler, itself a variation on the
archiver, to analyze the import/export graph of the collected module
sources.