logoalt Hacker News

Vite 8.0 Is Out

496 pointsby kotharijitoday at 4:36 AM169 commentsview on HN

Comments

raydenvmtoday at 10:05 AM

Yeah, it makes you wonder how much computing power the industry has wasted over the years on tools that nobody questioned because "that's just how long builds take." We planned our work around it, joked about creating breaks, and built entire caching layers to work around it.

Kudos to the Vite maintainers!

show 2 replies
upsupertoday at 3:36 PM

I contributed this change in Vite 8:

> Wasm SSR support: .wasm?init imports now work in SSR environments, expanding Vite's WebAssembly feature to server-side rendering.

While the process was relatively slow, I really appreciate the extra effort that the team have put on even this minor feature add. They not only guided me towards more compatible and idiomatic approach, but also added docs and helped keeping the code up to date before merging.

show 1 reply
homebrewertoday at 8:29 AM

Very pleased to see such performance improvements in the era of Electron shit and general contempt for users' computers. One of the projects I'm working on has been going for many years (since before React hooks were introduced), and I remember building it back in the day with tooling that was considered standard at the time (vanilla react-scripts, assembled around Webpack). It look maybe two minutes on a decent developer desktop, and old slow CI servers were even worse. Now Vite 8 builds it in about a second on comparable hardware. Another demonstration of how much resources we're collectively wasting.

show 2 replies
johnfntoday at 5:46 AM

Vite 8 is pretty incredible. We saw around an 8x improvement (4m -> 30s) in our prod build, and it was nearly a drop-in replacement. Congrats (and thank you!) to the Vite team!

show 3 replies
morettitoday at 9:21 AM

Thanks to the Vite team for building a faster, modern bundling solution on a fully open source stack that isn't tied to a specific framework...cough cough, Turbopack

brillouttoday at 12:15 PM

Vite+, Void Cloud, Void Framework... an epic battle between Vercel and Void is coming.

The PRC (aka server functions) demo [0] is particularly interesting — end-to-end type safety (from DB to UI) is a major milestone for JavaScript. We've been doing a lot of RPC design work in that space with Telefunc (tRPC alternative) [1] — it's a really hard topic, and we're looking forward to collaborating with the Void team. (Also looking forward to contributing as the creators of Vike [2].)

[0]: https://www.youtube.com/watch?v=BX0Xv73kXNk (around the end of the first talk) [1]: https://telefunc.com (see the last PR) [2]: https://vike.dev

soulchild77today at 6:45 AM

Awesome! Too bad Next.js will never profit from these incredible community efforts, because Vercel suffers from NIH.

show 4 replies
chrisweeklytoday at 1:43 PM

Awesome news. Amid all the (real and perceived) js ecosystem churn, vite has been consistently excellent for dx and production. The unified rolldown bundler is only going to increase vite's appeal and widen the gap as the fastest, most pragmatic and flexible foundation for ts/js projects. Huge fan, speaking from deep experience (webdev since 1998).

Aldipowertoday at 11:25 AM

As I am interesting in long time maintainability (should still work in 10 years) with my projects I am just using esbuild directly. I am not interested in adjusting my projects, just because things changed under the hood in "wrappers" like Vite and I suddenly have a lot of work.

vite_throwawaytoday at 1:58 PM

I have a small React project using vite 7 and have the following in my config so that vite interprets ".js" files as JSX:

    // See https://github.com/vitejs/vite/discussions/14652
    esbuild: {
      loader: "jsx",
      include: /.*\.jsx?$/,
      exclude: [],
    },
    optimizeDeps: {
      esbuildOptions: {
        loader: {
          ".js": "jsx",
        },
      },
    },
Note the comment at the top. I had no idea how to come up with this config by checking the documentation pages of vite and its various related tools. Luckily I found the GitHub issue and someone else had come up with the right incantation.

Now this new vite uses new tools, and their documentation is still lacking. I spent half an hour trying to figure out how vite (and related tools that I had to navigate and try to piece a coherent view of: esbuild, oxc, rolldown, etc.) might be convinced, but gave up and stayed with vite 7.

Someone could respond with a working solution and it would help, sure, but these tools sure as hell have documentation issues.

show 3 replies
nebezbtoday at 7:23 AM

> Built-in tsconfig paths support

A great QoL change. One less place to duplicate (and potentially mistake) a config.

shunia_huangtoday at 9:02 AM

Ah, wondering how long it will take Angular to replace it's sh*t building tool chain to fully vite compatible, hope it could happen before I change may career path or retire.

h4ch1today at 10:04 AM

I've been using rolldown-vite for the past 3-4 months with absolutely no issues on a very large monorepo with SvelteKit, multiple TS services and custom packages.

Just upgraded to 8 with some version bumping. Dev server time reduced to 1.5s from 8s and build reduced to 35s from 2m30. Really really impressed.

gdorsitoday at 8:48 AM

Sweet, great job Vite team!

I wonder how much of the Rollup bundling magic has been ported to Rolldown.

One thing that always made this kind of switch to Rust has always been that Rollup has become so sophisticated that's hard to replace with something new.

brandensilvatoday at 5:56 AM

Man the perf changes for this version are awesome. Thanks Vite.

show 1 reply
karel-3dtoday at 8:25 AM

Yesterday I stopped hating AI because it converted an old webpack project with impenetrable plugin settings to a single simple Vite config.

I still don't understand how people used to think scripts like this are the proper way to bundle an app.

https://github.com/facebook/create-react-app/blob/main/packa...

vite is great, is all I am saying

imfingtoday at 8:36 AM

Awesome! been using Vite since its early days. really excited to see how it's improving the JavaScript and TypeScript tooling landscape and how it continues to evolve

throwaway290today at 9:51 AM

Outsider question: why use Rollup when Esbuild exist? Is esbuild not enough for production builds?

show 1 reply
slopinthebagtoday at 4:59 AM

> Currently, the Oxc transformer does not support lowering native decorators as we are waiting for the specification to progress

Does Oxc also support TS runtime features like constructor parameter properties and enums? I seem to recall in the beta that they had enabled --erasableSyntaxOnly, presumably because Rolldown / Oxc didn't support doing a full transform.

show 1 reply
heldridatoday at 10:17 AM

Migrating straight away! Thank you!

verma_yatharthtoday at 6:48 AM

I tried it and I saw more than 6x improvement in speed. It's on the top. Awesome tool 1

pkilgoretoday at 6:11 AM

Congratulations!

hackernewsman71today at 6:44 AM

holy shit - Vite 8 - rhymes in french! Did they mention that somewhere?

useftmlytoday at 2:41 PM

[flagged]

show 2 replies
raphaelmolly8today at 5:01 PM

[dead]

ptak_devtoday at 8:04 AM

[dead]

JulianPembroketoday at 9:10 AM

[flagged]

pjmlptoday at 7:03 AM

Another rewrite in Rust.

What about finally stop using node.js for server side development?

show 5 replies