From 7b893bd57f2f013c4a11e1e9f0ba435a3cfc96c0 Mon Sep 17 00:00:00 2001 From: William Tetlow <9057181+williamtetlow@users.noreply.github.com> Date: Tue, 15 Feb 2022 12:33:46 +0000 Subject: feat(cli): Replace bundling with eszip in deno compile (#13563) Co-authored-by: Divy Srivastava --- cli/tests/testdata/standalone_dynamic_imports.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 cli/tests/testdata/standalone_dynamic_imports.ts (limited to 'cli/tests/testdata/standalone_dynamic_imports.ts') diff --git a/cli/tests/testdata/standalone_dynamic_imports.ts b/cli/tests/testdata/standalone_dynamic_imports.ts new file mode 100644 index 000000000..d4dc55152 --- /dev/null +++ b/cli/tests/testdata/standalone_dynamic_imports.ts @@ -0,0 +1,15 @@ +(async () => { + const { returnsHi, returnsFoo2, printHello3 } = await import( + "./subdir/mod1.ts" + ); + + printHello3(); + + if (returnsHi() !== "Hi") { + throw Error("Unexpected"); + } + + if (returnsFoo2() !== "Foo") { + throw Error("Unexpected"); + } +})(); -- cgit v1.2.3