-
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
error: Could not resolve "fs" #90
Comments
I found that when using it via the API, the build method can take in parameter of |
@jorgelo thank you, that does get rid of the Here is the current build script I'm using:
|
This should be fixed in version 0.5.3. It turns out the problem was specifically caused by code bundled with Browserify, so I have special-cased this code pattern in esbuild. You can read more in the release notes. |
Amazing, thank you! |
My library includes packages (
opentype
that is in threejs, andammo.js
) which userequire
,path
andfs
.When compiling with webpack, I add the following to the config:
But how would you solve this with esbuild? Here is below the errors that are printed out:
And here is how to reproduce:
The text was updated successfully, but these errors were encountered: