Skip to content

Commit

Permalink
docs: specify LTS versions with register support
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgoss committed May 2, 2024
1 parent 5ce3718 commit 6dae044
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/transpiling.md
Expand Up @@ -41,6 +41,11 @@ For ESM, you need to use the `loader` configuration option to register `ts-node`

The value of `loader` will usually be a package/module name, but if you have a loader you've authored locally, you can provide a path that's relative to your project's working directory.

Note that some LTS version streams of Node.js introduced this loaders support fairly recently, and you might need to upgrade to a newer minor version:

- 18.x - you need at least 18.19.0
- 20.x - you need at least 20.6.0

### Environment variable

In versions earlier than v10.6.0 (without the `loader` option), you can still instruct Node.js to register the loader on the process via the `NODE_OPTIONS` environment variable, like this:
Expand Down

1 comment on commit 6dae044

@davidjgoss
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #2401

Please sign in to comment.