-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
Node option for experimental and module resolutions #880
Comments
@thearegee There's a long thread around here where people have commented on possible implementations, but yes - still looking for a PR! Happy to work with you on getting it out. |
@blakeembrey if you could link the thread, or let me know if there was a preference in approach and maybe give me a point in the right direction I will knock something up tomorrow I would love to get something like this in because it will make my project so much cleaner |
I was thinking we need the ability to pass any node flags to ts-node. I looked at some tickets I could find, some looked like they suggested using environmental variables:
Others seemed to suggest maybe use
First I was wondering if you had a preference of what you would like? Secondly I was struggling to understand how you were passing the script to node where you could set these flags. I looked into in your However I didn't see this being executed when I was playing around. So yeah, I'm happy do the work, just need a little guidance on how you expect this to work and some more context. Thanks, |
Node flags to TS node is a much different request and we should keep these separate, but I’ll be the first to decline supporting node.js flags in the TS Node executable. If you go through the Git history, you’ll discover that used to be possible - it was just too much to maintain and had some annoying edge cases. Every feature brings more issues/requests so I ended up removing it in favor of using node native features. |
The issue is #436. |
@blakeembrey so would you be open for both I will catch up on the issue today |
@thearegee native module support was implemented and published, and feedback is being tracked in #1007 |
|
Hello,
I have a project that is written in typescript that imports node modules that are not transpiled. So I want to be able to use both
ts-node
to handle my code and pass flags to node so I can use native imports.I thought the following might work:
Unfortunately not, I also saw the following: #560
I was just wondering if there was support for something like this, or if you are still looking for a PR?
Thank you,
Robin
The text was updated successfully, but these errors were encountered: