ts-node icon indicating copy to clipboard operation
ts-node copied to clipboard

It would be better if --esm is automatically specified if the file extension is `.mts`

Open gfx opened this issue 2 years ago • 0 comments

Desired Behavior

ts-node requires --esm if the target file is ES modules, and the name of the file ends with .mts, it must be an ES module.

So I'd like to do ts-node foo.mts without --esm option.

gfx avatar May 16 '23 01:05 gfx