-
Notifications
You must be signed in to change notification settings - Fork 9
Unknown file extension ".ts" #12
Comments
any updates here? :) |
Removing
|
this is not a fix, if you're using ESM instead of CJS. ESM requires to have |
It is sadly not. But until node provides an API to intercept loading modules (which I suspect is unlikely soon, if ever) there's no way to fix this. |
It won't, actually. Because now there are lots of packages in the NPM ecosystem that use this, which this will also fail to load. |
Trying to run
node -r @swc/register test.ts
throws the following:Context
The text was updated successfully, but these errors were encountered: