Repository navigation
Disabled Node type stripping: replace ts-node with tsx #37551
lppedd
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Being that
ts-nodedoes not work with TypeScript 7+, a possible replacement for it is https://github.com/privatenumber/tsx.https://github.com/nrwl/nx/blob/master/packages/nx/src/plugins/js/utils/register.ts will have to be updated and a new environment variable be introduced.
Important: while code comments suggest
@swc-node/registeris "faster", this is not always true. it is highly dependent on the environment. For example, our benchmarks show that usingts-noderesult in better build times.All reactions