Skip to content

Commit

Permalink
Fix vm usage for Node 16
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Apr 22, 2022
1 parent 2b9a997 commit 06f41e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/test-utils/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,8 @@ export async function runESM(
identifier: `${normalizeSeparators(
path.relative(baseDir, filename),
)}?id=${id}`,
importModuleDynamically: entry,
importModuleDynamically: (specifier, referrer) =>
entry(specifier, referrer),
context,
initializeImportMeta(meta) {
meta.url = `http://localhost/${path.basename(filename)}`;
Expand Down

0 comments on commit 06f41e0

Please sign in to comment.