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
Use global.require to silence webpack warning #3129
Conversation
Mh, is |
I don’t think require is actually a global in node right? It wraps modules in a closure with a require argument, just like parcel does. So checking global.require probably won’t work. |
You're right... |
Should we check that both module.require and require exist, but actually call require? |
No, because of the original issue with |
↪️ Pull Request
I'm still not quite sure whether module.require and require are completely equivalent. Doing
toString
in node show this:Related: #2883