News for hackers. Stuff that matters.
Re:Parcel v2 by hsn915 on Wednesday October 13, 2021 @09:36PM (#28859597)
I really don't understand vite. They use esbuild under the hood for some of the tasks, but they still ultimately use rollup. I tried to use it for a project I'm working on and it was more than 50 times slower than esbuild. (esbuild took half a second, vite took 30 seconds).
Re:Parcel v2 by dcre on Wednesday October 13, 2021 @11:12PM (#28860135)
It uses esbuild for unbundled dev builds and Rollup for bundled production builds.

https://vitejs.dev/guide/why.html#why-bundle-for-production

Re:Parcel v2 by isthisreality on Thursday October 14, 2021 @12:25PM (#28866386)
Vite's goal is a mixture of speed and flexibility. Rollup's plugin system provides the flexibility in exchange for slower build times, but that doesn't affect development speed, because Vite doesn't bundle anything in development (apart from CommonJS dependencies, which are pre-bundled with esbuild).
Re:Parcel v2 by rk06 on Wednesday October 13, 2021 @11:11PM (#28860129)
Vite's main focus is on a fast dev server and provide ultra fast hmr.

However, it needs source (user code and npm packages) to be in ESM modules, so it uses esbuild for pre bundling npm packages.

And vite uses roll-up to create a production build with some parts done by esbuild

Re:Parcel v2 by andrew_ on Wednesday October 13, 2021 @10:08PM (#28859786)
As other comments have mentioned, they use Roll-up under the hood.