from Hacker News

Vite 4.0

by jonifico on 12/9/22, 4:55 PM with 45 comments

  • by olingern on 12/9/22, 5:50 PM

    JS land really needs to take some notes on how Rust and Go handle major versions, i.e. avoid them if possible. Breaking changes may be progress for tooling but for end users it's upgrade hell.

    Ruby ~Rails~ found the middleground where major/minor versions[1] typically land in December. Rails[2] typically follows which gives users ample time to upgrade along with a migration guide

    1 - https://www.ruby-lang.org/en/downloads/releases/

    2 - https://rubygems.org/gems/rails/versions

  • by fiddlerwoaroof on 12/9/22, 5:38 PM

    A core piece of tooling like this going through four major versions in two years really makes me hesitant to use it: it tells me that the authors of the tool don’t care about breaking changes and I’ll have to do a lot of maintenance work to keep up with the latest release.
  • by joshe on 12/9/22, 6:16 PM

    Can someone explain or point to something about what vite is?

    Is this very niche or something every web developer should be interested in?

    Tried this https://vitejs.dev/guide/why.html, and the comparisons page and it's all buzzwords.

    "Vite aims to address these issues by leveraging new advancements in the ecosystem: the availability of native ES modules in the browser, and the rise of JavaScript tools written in compile-to-native languages."

    Corp PR speak is not the pinnacle, there is no reason to emulate it. To "Address" a problem means you haven't solved it. "Leveraging" just means "using".

  • by thunky on 12/9/22, 6:22 PM

    On the https://vitejs.dev/guide/why.html page Parcel is mentioned under "The problems" section, suggesting that Vite improves on Parcel.

    Yet in the https://vitejs.dev/guide/comparisons.html page Parcel is not mentioned.

    So as someone familiar with Parcel and not familiar with Vite I don't know why I should take a deeper look at Vite...or maybe I shouldn't?

  • by byhemechi on 12/9/22, 5:43 PM

    i really like vite, my biggest complaint with it previously was that it used the incredibly slow babel in development. i'm very happy to see it's moving to swc, this will hopefully make large sveltekit projects not use all of my battery with hot reload
  • by jvanveen on 12/9/22, 8:21 PM

    CSS sourcemaps, being a basic assets in frontend tooling for many years, are still unsupported in Vite(https://github.com/vitejs/vite/issues/2830). Being an open issue for that long, while sourcemaps are supplied for free with tools like ESBuild & SCSS, are perhaps an indication of too much complexity in Vite? About build performance; ESBuild(and SWC as well) happily build large projects within reasonable time(<200ms). I doubt that skipping bundling all-together, by using ES-Modules during development, is worth the extra hassle in tooling. It made sense during the Webpack/Vuepack/Parcel 1 era, but not that much anymore since ESBuild happened. Spending some extra time in writing a custom buildscript (ESBuild + SCSS + simple async task manager + Chokidar + Tinylr or something similar) pays itself back really quick when a project gets larger.
  • by encryptluks2 on 12/9/22, 7:11 PM

    Everytime I try a JS framework, the process is... see that there isn't a compiled release, determine that I need to use yarn (or npm), pull in 1000 dependencies with multiple vulnerabilities and wait 30 seconds or more, go back to Go or Rust.
  • by revskill on 12/9/22, 5:55 PM

    Last time tried to build standalone "library" to embed in another application but failed with vitejs (Parcel worked instead). Imagine bundle all application into a bundle.min.js, a bundle.min.css file.

    Hope this story could improve.

  • by clementmas on 12/10/22, 12:56 AM

    Isn't it too early to drop Safari 13 support by default?