-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
This call to "require" will not be bundled because the argument is not a string literal (surround with a try/catch to silence this warning) #1132
Comments
Looks like a dupe of #1127. EDIT: Looked more into this, and I don't believe it is a dupe after all. This sort of dynamic dependency resolution is really problematic for bundlers. Figuring how those dependencies during bundling is pretty tricky. It would require the bundler to be able to statically evaluate the value of |
Yep... seems like this... internal |
Yes, it's not possible to bundle things like this. The warnings are correct. They are warnings instead of errors because your bundle could hypothetically still work if these code paths are not relied upon. But if you need this to work then you're out of luck. You'll either have to run the code unbundled or use another tool instead of esbuild. |
Closing this because this is by design. |
Ok. Tx for res @evanw 🤓 |
Does somebody know any workaround to bundle mongoose module with this? |
Can't bundling mongoose module
The text was updated successfully, but these errors were encountered: