summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/standalone_dynamic_imports.ts
diff options
context:
space:
mode:
authorWilliam Tetlow <9057181+williamtetlow@users.noreply.github.com>2022-02-15 12:33:46 +0000
committerGitHub <noreply@github.com>2022-02-15 18:03:46 +0530
commit7b893bd57f2f013c4a11e1e9f0ba435a3cfc96c0 (patch)
tree41bc082445edd7c18ec2586050db110a8393c747 /cli/tests/testdata/standalone_dynamic_imports.ts
parent760f4c9e2427e87815a8e59b0807693c8dcb623a (diff)
feat(cli): Replace bundling with eszip in deno compile (#13563)
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
Diffstat (limited to 'cli/tests/testdata/standalone_dynamic_imports.ts')
-rw-r--r--cli/tests/testdata/standalone_dynamic_imports.ts15
1 files changed, 15 insertions, 0 deletions
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");
+ }
+})();