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 = {};