-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
esm import cjs package with .node file require return a path string #3809
Comments
Please read the “getting started” instructions in the documentation: https://esbuild.github.io/getting-started/#bundling-for-node:
|
Can 'dynamic require' be supported in 'onResolve' to allow users to set their own parsing method? |
The |
thanks |
like
sharp
package.I use config
when I import (Imported by other packages),after build ,The file
sharp-linux-x64-DQNVFNDI.node
has been successfully extractedin
sharp
packagebut
module2.exports
return a path string../sharp-linux-x64-DQNVFNDI.node
I try to use #1051 (comment) but not work
Is it because 'require' was not captured in the ESM?
The text was updated successfully, but these errors were encountered: