4 ms·
Yes. I mostly build libraries and rollup still beats everything in compatibility (esm, umd, cjs, etc) and output quality. It's slow, though, and I would love a
by domoritz 4y ago
Yes. I mostly build libraries and rollup still beats everything in compatibility (esm, umd, cjs, etc) and output quality. It's slow, though, and I would love a faster alternative. Esbuild doesn't do tree shaking as well as rollup.
- beezlewax 4y agoCan esbuild support esm or umd etc via plugins? I've looked at using it but these formats are an unfortunate requirement for the builds I need to do. I noted that esbuild doesn't fully support es5 transpilation and this will hold it back from some usage.
- andrew_ 4y agoVite uses it under the hood and has it running crazy fast.
- Vinnl 4y agoI think Vite only uses it for the production build, no? As far as I know Vite doesn't do bundling (yet) in dev mode.
- silverwind 4y agoVite uses both esbuild and rollup for the prod build. When doing React, it also adds Babel. This chaining of tools is the reason why it's so slow.
- andrew_ 4y ago"so slow." JS-perf world is quite insufferable. We're talking 0.09s vs 0.01s https://mobile.twitter.com/youyuxi/status/1585066162370777091 https://mobile.twitter.com/youyuxi/status/158506616237077709...