Skip to content
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

support NODE_OPTIONS #52

Closed
cjroebuck opened this issue May 11, 2022 · 3 comments · Fixed by #54
Closed

support NODE_OPTIONS #52

cjroebuck opened this issue May 11, 2022 · 3 comments · Fixed by #54

Comments

@cjroebuck
Copy link

currently you need to pass --loader=esmock as an argument to node because esmock checks only process.argv.

It would be good to support NODE_OPTIONS env var too.

@iambumblehead
Copy link
Owner

@cjroebuck would you show how esmock should be started with NODE_OPTIONS? maybe support could be added.

@cjroebuck
Copy link
Author

cjroebuck commented May 11, 2022

It would be something like:

NODE_OPTIONS='--loader=esmock' node src/whatever.js

Thank you very much for esmock

https://nodejs.org/api/cli.html#node_optionsoptions

@iambumblehead
Copy link
Owner

related TypeStrong/ts-node#1748

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants