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

fix: Added check if require.main is set #53

Merged
merged 1 commit into from
Aug 2, 2022

Conversation

Pouja
Copy link

@Pouja Pouja commented Aug 2, 2022

When using commonjs2 then require.main is undefined.

Closes #52

When using commonjs2 then require.main is undefined.
@inxilpro inxilpro merged commit e868e55 into inxilpro:master Aug 2, 2022
@inxilpro
Copy link
Owner

inxilpro commented Aug 2, 2022

Amazing! Thank you for this.

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 this pull request may close these issues.

Package throws an error when imported in an ES module installed globally on Ubuntu
2 participants