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

Verified require function is defined #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

liorcode
Copy link

When trying to detect mode, it checked that model.exports is defined and assumed that means that require is also defined. However, this is not always the case; some libraries other then require also define module.exports. I added a check to verify require is a function.

When trying to detect mode, it checked that `model.exports` is defined
and assumed that means that require is also defined. However, this is
not always the case; some libraries other then `require` also define
`module.exports`. I added a check to verify `require` is a function.
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.

1 participant