Closed NfNitLoop closed 1 year ago
While waiting for the code to land in the registry it is possible to fix esbuild error with esbuild-plugin-ignore
or with esbuild alias
option: {"path": "./src/dummy.js"}
where dummy.js is an empty file. Both seem to work fine.
It looks like the package.json already has a
"fs": false
. I thinkpath
needs to be added there too.Without it, bundlers may try to make it available in the browser, or give an error. Here's the error I get from esbuild:
It appears I'm not the first person to run into this: https://github.com/evanw/esbuild/issues/1786