4 ms·
Rollup is slow as hell. I’m working with a project where the builds take minutes on an M3 Pro. I’d like to switch to something like esbuild but it uses a lot o
by antihero 2y ago
Rollup is slow as hell. I’m working with a project where the builds take minutes on an M3 Pro.
I’d like to switch to something like esbuild but it uses a lot of features like aliases so would take some work to translate and the lib is being moved away from anyway. If I can drop something in that speeds it up I’m all for it
- nikeee 2y agoThe vite authors are working on a roll up rewrite in rust to solve this. So instead of using farm, I'd just wait.
- maccard 2y agoI compile a few hundred thousand lines of c++ in “minutes”… it’s sad to see the state of the ecosystem be actually slower than languages that have a reputation for being slow.
- pjmlp 2y agoIndeed.
- dgb23 2y agoOk, but C++ is a compiled language. Even though compilation speed doesn’t need to be that slow, at least you’re getting something out of it. JS is interpreted and JITed. The whole point of using it is having a very fast feedback loop. The tradeoff should be: faster at dev, slower at runtime. There’s something fundamentally wrong if that premise is broken. Actually it’s insane that we need build steps with any noticeable delay during dev time at all.
- erkelost 2y agoyou can try use farm,If you are using a relatively simple rollup plugin, there should be no problem. The farm is compatible with rollup plugins.