Skip to content

Commit e4faa6a

Browse files
author
이수균/서비스개발실/HMC
committed
fix: make sure linked dependencies evaluated (#4216)
1 parent 94d8868 commit e4faa6a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/sdk/src/node.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,9 @@ async function loadModule(
261261
// @ts-ignore
262262
importModuleDynamically: async (specifier, script) => {
263263
const resolvedUrl = new URL(specifier, url).href;
264-
return loadModule(resolvedUrl, options);
264+
const module = await loadModule(resolvedUrl, options);
265+
await module.evaluate();
266+
return module;
265267
},
266268
});
267269

@@ -271,6 +273,7 @@ async function loadModule(
271273
await module.link(async (specifier: string) => {
272274
const resolvedUrl = new URL(specifier, url).href;
273275
const module = await loadModule(resolvedUrl, options);
276+
await module.evaluate();
274277
return module;
275278
});
276279

0 commit comments

Comments
 (0)