We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35c3695 commit b2e78d4Copy full SHA for b2e78d4
packages/sdk/src/node.ts
@@ -261,7 +261,9 @@ async function loadModule(
261
// @ts-ignore
262
importModuleDynamically: async (specifier, script) => {
263
const resolvedUrl = new URL(specifier, url).href;
264
- return loadModule(resolvedUrl, options);
+ const module = await loadModule(resolvedUrl, options);
265
+ await module.evaluate();
266
+ return module;
267
},
268
});
269
@@ -271,6 +273,7 @@ async function loadModule(
271
273
await module.link(async (specifier: string) => {
272
274
275
const module = await loadModule(resolvedUrl, options);
276
277
return module;
278
279
0 commit comments