-
-
Notifications
You must be signed in to change notification settings - Fork 543
Closed
Milestone
Description
Follow-up to #1031
Node will throw an error if you try to require() an ESM file.
To preserve backwards-compatibility, this error-throwing was enabled conditionally in ts-node's require hook. It would only throw if you had opted-in to the ESM loader.
However, node behavior for .js files is to always throw, and we need to match that. So as a breaking change, we should do the same.
Metadata
Metadata
Assignees
Labels
No labels