rollup-plugin-esbuild
rollup-plugin-esbuild copied to clipboard
browser: true ignored when used with @rollup/plugin-node-resolve
Same issue as https://github.com/rollup/plugins/issues/1267.
I'm getting
(!) Unresolved dependencies
https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency
zlib (imported by "zlib?commonjs-external")
http (imported by "http?commonjs-external")
https (imported by "https?commonjs-external")
assert (imported by "assert?commonjs-external")
stream (imported by "stream?commonjs-external")
What fixes this problem is running this plugin as:
{
...esbuild(),
resolveId: undefined,
}
In my environment I needed to replace resolveId a little differently.
{
...esbuild(),
resolveId: () => null,
}