-
-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export ts-node/esm-register
#2073
base: main
Are you sure you want to change the base?
Conversation
The `--loader` flag might be removed in future version. With `ts-node/esm-register` users will be able to register the loader using the `--import` flag.
This is great, we will get rid of
if we use the |
Make sure to add esm-register.mjs to the files list in package.json. |
Regarding the proposed patch:
An example can be found here: |
Hi @jlenon7 did you have time to look at the proposed changes? Looking forward to this PR to be merged. If I can help, i would love to |
This looks good and it's nearly identical to the code Node recommends when using legacy |
Sorry the delay, I've uploaded the code with the suggestions. |
For further context and alternative example see :- #2100 |
So what's the resolution on this? Is it coming in? |
Well, the implementation is done. We just need to wait to the core contributors to merge it or some feedback if they need more changes. |
@jlenon7 Thanks for this PR. Thank You |
Any update on merging this pr? |
It would be lovely if we could get this merged |
Hey @cspotcode could you take a look on this please? |
Register
ts-node/esm
loader programmatically usingregister
fn.See issue #2072