1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00

Add duplicate import test

This commit is contained in:
Kitson Kelly 2018-08-27 19:32:12 -07:00 committed by Ryan Dahl
parent fe9ca53bc2
commit 9960b1d22b
3 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,9 @@
// with all the imports of the same module, the module should only be
// instantiated once
import "./subdir/auto_print_hello.ts";
import "./subdir/auto_print_hello.ts";
(async () => {
await import("./subdir/auto_print_hello.ts");
})();

View file

@ -0,0 +1 @@
hello!

View file

@ -0,0 +1,2 @@
console.log("hello!");
export = {};