News for hackers. Stuff that matters.
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.