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

Does not work when main script is ES module #49

Open
coreyfarrell opened this issue Jun 28, 2020 · 0 comments
Open

Does not work when main script is ES module #49

coreyfarrell opened this issue Jun 28, 2020 · 0 comments
Labels

Comments

@coreyfarrell
Copy link

node script.mjs results in require.main being undefined. I'm addressing this within the next version of tap at tapjs/libtap#21. A bit ugly but I'm using process.argv[1] as long as we're not in REPL and we're not evaluating with any form of node -p or node -e.

@bcoe bcoe added the bug label Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants