News for hackers. Stuff that matters.
Re:Vite 3.0 by 202206241203 on Wednesday July 13, 2022 @11:38AM (#32084182)
> Vite is powering a renewed innovation race in Web frameworks.

Wait what, again? I thought we all silently agreed to use the mature/legacy frameworks React and Angular until the proper WASM arrives so that we could burn all of JS/CSS/HTML...

Re:Vite 3.0 by ForSpareParts on Wednesday July 13, 2022 @12:58PM (#32085445)
The description is maybe a little misleading. Vite is a development experience improvement for existing frontend frameworks; most people using it are on React or Vue (which is the other of the "big 3" along with React and Angular). It's about making projects build and start faster.
Re:Vite 3.0 by francisofascii on Wednesday July 13, 2022 @03:57PM (#32088016)
For clarification, isn't it true that you can only use Vite with Vue and React, and not Angular. Angular is too tied to WebPack (At least not today) I am not entirely sure, so I wanted to ask.
Re:Vite 3.0 by rk06 on Wednesday July 13, 2022 @10:51PM (#32091450)
Vite is framework agnostic. But angular being too big and too monolith requires large change to move from webpack to vite.

Some folks have attempted it, but not completed vite support.

This is nothing new in angular land. There are multiple third party libraries and framework which support react, vue, svelte and even solid, but not angular.

Re:Vite 3.0 by ramesh31 on Wednesday July 13, 2022 @11:41AM (#32084219)
>I thought we all silently agreed to use the mature/legacy frameworks React and Angular until the proper WASM arrives so that we could burn all of JS/CSS/HTML...

We did. But people without real problems to solve will continue reinventing the wheel, while we silently churn away on actual products with stable tooling.

Re:Vite 3.0 by SahAssar on Wednesday July 13, 2022 @11:59AM (#32084532)
As someone who has worked in a lot of frontend (Vue, react, various microframeworks) I would heavily disagree that the tooling is "stable". It's incredibly fickle and breaks in ways that are hard to debug.

Microframeworks are slightly better, especially if they support no-build setups since then a "build step" for prod is only bundling and minification.

Re:Vite 3.0 by cercatrova on Wednesday July 13, 2022 @02:07PM (#32086518)
This comment and the parent's tells me that neither of you know what vite does or have used it before, if you're implying that it's not fixing "real problems." Webpack is slow due to being written in JS, so when a bundler comes along written in Go and makes builds 10x faster, that is solving a "real problem."
Re:Vite 3.0 by ramesh31 on Wednesday July 13, 2022 @04:11PM (#32088178)
>Webpack is slow due to being written in JS, so when a bundler comes along written in Go and makes builds 10x faster, that is solving a "real problem."

I've worked on projects with hundreds of thousands of LOC compiling with Webpack. Build time has literally never been a concern for me. The entire point of tooling like Webpack is that it's written in JS because dealing with interop between native binaries is an absolute nightmare. It's a feature, not a bug. The same reason we moved to JS based SASS/PostCSS compilers.

Re:Vite 3.0 by francisofascii on Wednesday July 13, 2022 @03:52PM (#32087951)
> Webpack is slow

So it sounds like Webpack was never really mature, or too late in getting ported to Go before Vite took over?

Re:Vite 3.0 by cercatrova on Wednesday July 13, 2022 @04:03PM (#32088087)
The latter mainly. The biggest reason is that JS is too slow compared to other languages, especially compiled ones like Go or Rust. So writing developer tools in JS already made them slow.