microbundle
microbundle copied to clipboard
Failed to resolve the module node:*
Just a warning, and already resolved by #956. Just hasn't been released yet.
Just release 0.15.1
so this should be corrected.
Thanks
Thank you @rschristian
I'm compiling a library that runs in both Node.js and a browser, and the library contains dynamic imports for node built-ins like 'fs', executed only in Node.js. The target for Microbundle is not necessarily Node.js.
When importing fs
I can add the following to my package.json
and everything works fine:
"browser": {
"fs": false,
"path": false
},
However, using node:fs
, the same thing does not work, and warnings continue to appear with:
"browser": {
"node:fs": false,
"node:path": false
},
Is this intended, and (if not) should I file a separate issue for it?
@donmccurdy Separate issue please, if you can