summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/dynamic_import/other.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-08-20 11:31:33 -0400
committerGitHub <noreply@github.com>2022-08-20 11:31:33 -0400
commit87f80ff6be5e2a132b583a9c380fff5db3cb2b07 (patch)
treeb2c43c9004b9ada204f3b5db7c221fa6322f026a /cli/tests/testdata/npm/dynamic_import/other.ts
parent1ffbd561642d05a05e18ada764d50581dea779ef (diff)
feat(unstable): initial support for npm specifiers (#15484)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/tests/testdata/npm/dynamic_import/other.ts')
-rw-r--r--cli/tests/testdata/npm/dynamic_import/other.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/dynamic_import/other.ts b/cli/tests/testdata/npm/dynamic_import/other.ts
new file mode 100644
index 000000000..e5d3b6dc3
--- /dev/null
+++ b/cli/tests/testdata/npm/dynamic_import/other.ts
@@ -0,0 +1,4 @@
+console.log("B");
+const chalk = (await import("npm:chalk@5")).default;
+
+console.log(chalk.green("C"));