News for hackers. Stuff that matters.
Re:Vite 3.0 by capableweb on Wednesday July 13, 2022 @10:23AM (#32083161)
The landing page of Vite claims "Next Generation Frontend Tooling" but then go on to describe features that already have been existing for a good while (multiple years).

What exactly is the "next generation" part here? The composition? That's also not new, so I think I'm either missing something very obvious, or they need to do a better job explaining how Vite is actually different.

Re:Vite 3.0 by collegeburner on Wednesday July 13, 2022 @10:34AM (#32083335)
Vite is way faster and takes way less config. We been using it in prod for almost a year now and it's just way better. One of the few new js tools thats actually better and doesn't just exist to get stars on github and pad a resume.
Re:Vite 3.0 by capableweb on Wednesday July 13, 2022 @01:34PM (#32086029)
> Vite is way faster and takes way less config

That sounds like "incremental improvement", not "next generation tooling". But maybe my expectations are too high.

Re:Vite 3.0 by dmix on Wednesday July 13, 2022 @01:40PM (#32086124)
That's a fair assessment. You could argue esbuild which it's built on is 'next generation' in terms of JS tooling, with how it integrates with ESM and HTTP2. But in practice this is basically Webpack 2.0 (not v2, but the evolution of it).
Re:Vite 3.0 by nicoburns on Wednesday July 13, 2022 @10:30AM (#32083283)
It's the performance. It's basically Webpack but fast (sub-second rather than multi-second compiles). There's a number of projects competing in this area, and it might be a bit early to call a winner, ut it's looking like it's most likely going to be Vite.
Re:Vite 3.0 by rk06 on Wednesday July 13, 2022 @11:15AM (#32083845)
Vite bundles your app for prod, but not for dev.

While all previous ones, bundled for both dev and prod. This is what makes vite a different generation. And results in massive performance boost for dev "build" And HMR

Re:Vite 3.0 by other_herbert on Wednesday July 13, 2022 @07:12PM (#32089890)
Replying to emphasize this comment...

For dev, vite _doesn't_ bundle, it sends your site basically unmodified (as individual files) to the browser since most browsers are already capable of running anything you're using anyway... so if you change one file, that one file is patched, not the whole bundle that depended on it..

since there's no bundling, the initial start time is nearly instant...

webpack hot reload is NOTHING like this hot reload

Re:Vite 3.0 by _fat_santa on Wednesday July 13, 2022 @12:19PM (#32084803)
What I think they are referring to is the bundler is built with Go/Rust rather than JS (like Webpack). The difference in speed between Webpack and any bundler built in Rust/Go (SWC, Vite, Parcel, etc) is that the latter are like 10X faster, not "this is building faster" but "how the hell did it build this quick". That difference in speed is what I think of when they refer to "next generation".
Re:Vite 3.0 by sachinraja on Wednesday July 13, 2022 @12:50PM (#32085329)
Vite is not built in Go, esbuild is. esbuild is not the only reason why it's fast either, see https://vitejs.dev/guide/why.html.
Re:Vite 3.0 by FinalBriefing on Wednesday July 13, 2022 @12:31PM (#32084996)
Also, it does away with legacy JS imports. It doesn't use or support CommonJS without a plugin.
Re:Vite 3.0 by XCSme on Wednesday July 13, 2022 @11:32AM (#32084097)
What exactly is the "next generation" part here?

"Native" support for modules and TypeScript, so during development there is no bundle process needed, which is usually the most time-consuming process.

Re:Vite 3.0 by aabhay on Wednesday July 13, 2022 @10:28AM (#32083250)
Vite is a fast, efficient “bundler” for npm modules. You can run a dev environment and package code for complex, modern frameworks like svelte, vue 3, etc. It is not in itself a “framework” like React.
Re:Vite 3.0 by afavour on Wednesday July 13, 2022 @10:46AM (#32083481)
The next generation part is the speed. IIRC the core functionality is built in Go and it's much, much faster than competitors.