.cjs
extension is supported, but not .cts
in version 2 (rc)
#25498
Milestone
.cjs
extension is supported, but not .cts
in version 2 (rc)
#25498
Version: Deno 2.0.0-rc.1
I noticed that, in version 2, I can run
.cjs
files, but not.cts
files. Using any version from 1.x.x onwards, including the latest (1.46.3), both runs work fine.I'd like to understand it better:
Is it intentional to accept
.cjs
but not.cts
(not an issue), should both not be supported or should both work as in previous major version?The message error:
deno run
command.For a brief context, these tests are totally empty files, just to make sure that a test runner is properly targeting each file by extension according to how each runtime (Node.js, Bun and Deno) handles them.
Before
v2
(1.46.3):After
v2
(2.0.0-rc.1):Minimal Reproduction
test.cts
Output:
Being my first issue here, thanks for Deno 🦕💙
The text was updated successfully, but these errors were encountered: