fix(compartment-mapper): importMeta always an empty object in bundler
MODIFY
packages/compartment-mapper/src/bundle.js
packages/compartment-mapper/src/bundle.js
@@ -332,9 +332,7 @@ ${importsCellSetter(__liveExportMap__, index)}\
onceVar: {
${importsCellSetter(__fixedExportMap__, index)}\
},
- importMeta: {
- url: '${packageLocation}'\
- },
+ importMeta: {},
});
`,
),

MODIFY
packages/static-module-record/test/test-static-module-record.js
packages/static-module-record/test/test-static-module-record.js
@@ -64,7 +64,7 @@ test('export default', t => {
function initialize(t, source, options = {}) {
const { endowments, imports = new Map() } = options;
const record = new StaticModuleRecord(source);
- t.log(record.__syncModuleProgram__);
+ // t.log(record.__syncModuleProgram__);
const liveUpdaters = {};
const onceUpdaters = {};
const namespace = {};

fix(compartment-mapper): importMeta always an empty object in bundler