diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-03-13 12:21:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 16:21:13 +0000 |
commit | b3ca3b2f25931afb350027bde87dc3d4f9a741b0 (patch) | |
tree | e8d4f1211310e4998cd21882b96d0a799a83de87 /tests/specs/npm/es_module/main.js | |
parent | eccdb0e99acd66cce38fc8535aeab221a8a6fffa (diff) |
chore: rough first pass on spec tests (#22877)
Diffstat (limited to 'tests/specs/npm/es_module/main.js')
-rw-r--r-- | tests/specs/npm/es_module/main.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/specs/npm/es_module/main.js b/tests/specs/npm/es_module/main.js new file mode 100644 index 000000000..0f1fa2590 --- /dev/null +++ b/tests/specs/npm/es_module/main.js @@ -0,0 +1,9 @@ +import chalk from "npm:chalk@5"; + +if (import.meta.main) { + console.log(chalk.green("chalk esm loads")); +} + +export function test(value) { + return chalk.red(value); +} |