Skip to content

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

Merged
inxilpro merged 1 commit intoinxilpro:masterfrom
Pouja:bugfix/require-main-is-undefined
Aug 2, 2022
Merged

fix: Added check if require.main is set#53
inxilpro merged 1 commit intoinxilpro:masterfrom
Pouja:bugfix/require-main-is-undefined

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