Skip to content

Commit

Permalink
fix(compartment-mapper): importMeta always an empty object in bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
naugtur committed May 26, 2022
1 parent bb193c6 commit 4f7911b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions packages/compartment-mapper/src/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,7 @@ ${importsCellSetter(__liveExportMap__, index)}\
onceVar: {
${importsCellSetter(__fixedExportMap__, index)}\
},
importMeta: {
url: '${packageLocation}'\
},
importMeta: {},
});
`,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down

0 comments on commit 4f7911b

Please sign in to comment.