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

Correctly handle require.main === module #53

Open
qpwo opened this issue Mar 21, 2022 · 0 comments
Open

Correctly handle require.main === module #53

qpwo opened this issue Mar 21, 2022 · 0 comments

Comments

@qpwo
Copy link

qpwo commented Mar 21, 2022

If I import a function from one script into another then require.main === module is true in both so they both fully run. This is different behavior from node and ts-node.

evanw/esbuild#2121

https://github.com/qpwo/esbuild-issue-2121

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

No branches or pull requests

1 participant