Skip to content

Commit

Permalink
Fix way exports are retrieved
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Apr 2, 2020
1 parent 259370c commit 3db6258
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/tests/subdir/subdir2/dynamic_import.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(async (): Promise<void> => {
const { printHello } = await import("../print_hello.ts");
const { printHello } = await import("../mod2.ts");
printHello();
})();

Expand Down
2 changes: 1 addition & 1 deletion deno_typescript/system_loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ let System, __instantiateAsync, __instantiate;
if (s < sa.length) oa.push(...sa.slice(s));
id = oa.reverse().join("/");
}
return r.has(id) ? r.get(id).exp : import(mid);
return r.has(id) ? gExpA(id) : import(mid);
}

function gC(id, main) {
Expand Down

0 comments on commit 3db6258

Please sign in to comment.