"Fossies" - the Fresh Open Source Software Archive

Member "deno-1.34.2/cli/tests/testdata/run/014_duplicate_import.ts" (9 Jun 2023, 243 Bytes) of package /linux/www/deno-1.34.2.tar.gz:

As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 // with all the imports of the same module, the module should only be
    2 // instantiated once
    3 import "../subdir/auto_print_hello.ts";
    5 import "../subdir/auto_print_hello.ts";
    7 (async () => {
    8   await import("../subdir/auto_print_hello.ts");
    9 })();