summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/esm/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/npm/esm/main.js')
-rw-r--r--cli/tests/testdata/npm/esm/main.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/esm/main.js b/cli/tests/testdata/npm/esm/main.js
new file mode 100644
index 000000000..3dfa8122a
--- /dev/null
+++ b/cli/tests/testdata/npm/esm/main.js
@@ -0,0 +1,7 @@
+import chalk from "npm:chalk@5";
+
+console.log(chalk.green("chalk esm loads"));
+
+export function test(value) {
+ return chalk.red(value);
+}