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
Is it possible for mjs to do process.mainModule === module
?
#320
Comments
Hi @ratson! What version of |
How can I forget this. I am testing it with |
Thanks @ratson! In
So to enable this you'll need to use |
Thanks, @jdalton I got it working with |
Correct. |
I find #299 talking about exposing
process.mainModule
, but could not find an example using it.When I tried
node -r esm main.mjs
it gives
ReferenceError: module is not defined
Is this use case not supported?
The text was updated successfully, but these errors were encountered: