Rsbuild – A Better Vite?

(rsbuild.dev)

72 points | by synergy20 2 years ago ago

23 comments

  • blixt 2 years ago

    It is easy to get JS build fatigue. But I love the fact that these competitors push the incumbents forward. SWC was one of the earlier Rust builders, which then became absorbed into Vercel and turned into Turbopack (is my understanding), and then we have Rome which turned into a Rust rewrite as Biome (though they are barely at the level of compilation), and the Vite team seems to be making progress as fast as their HMR system, with Vite 6 already looking quite impressive with its stack of open and modular Rust-based AST parser/compiler/linter (Oxc, originally another solo project like SWC) all the way up to the Rolldown bundler.

    I'm curious to see what Rsbuild brings on top of this already very competitive space of Rust-based builders (and I haven't even mentioned the fantastic non-Rust ones like ESBuild!)

    I would personally bet on Vite at this time because it's the most complete package with the most momentum, and it's already hit some of the best speeds out there. Plus I am really rooting for a Rust-based package that compiles well as WASM because I am very inclined towards projects that do a lot of code analysis/compilation in the browser.

  • stickfigure 2 years ago

    <checks watch> oh, I see, it's time to rewrite my javascript builds again. My how the time flies.

  • dcre 2 years ago

    The better, faster, Rust-powered Vite is… Vite.

    https://voidzero.dev/posts/announcing-voidzero-inc

  • JasonSage 2 years ago

    I think it’s more accurate to call title this “… - A Better Webpack?”

    It’s a build tool that swaps an underlying Webpack process with a Rust-powered process which aims to be API-compatible. With the Webpack ecosystem.

    The Vite developers are working on the analogous Vite replacement, which is an API-compatible Rust rewrite of Rollup: https://rolldown.rs/

  • croes 2 years ago

    According to them it’s about webpack not vite.

    https://rsbuild.dev/community/releases/v1-0

    And 30ms slower as vite at hmr is totally ruining my DX

  • BiteCode_dev 2 years ago

    Their own home page says their Hot reload on RSBuild is slower than Vite's.

    Since I don't care if my build takes 1 second more (per their benchmark again), but I do care very much that the page refreshes faster when I do an edit, it's a hard sell.

  • gnabgib 2 years ago

    Title & H1: Rsbuild

    Got a fair bit of attention 44 days ago (25 points) https://news.ycombinator.com/item?id=41502473

  • STRiDEX 2 years ago

    If you use webpack and haven't looked into rspack you should! Can drop it in and speed up large webpack apps, currently investigating it at Sentry.

  • rk06 2 years ago

    “- A Better Vite?” is not part of the original title. Is that okay?

  • donatj 2 years ago

    In the past two years I have gone Webpack -> Parcel -> Webpack -> Vite -> Rollup

    I live for the day bundlers are no longer needed.

    The state of modern JS such that much of it does not work on the web by default is absurd.

    All the work that's been spent building better and better bundlers would have been better spent fixing the blight that Node, CJS and the death of Bower caused to begin with.

    How we ended up in a place where most JS is server-first and needs to be adapted for the web is beyond me.

  • steve_adams_86 2 years ago

    Interesting, it’s by a team from ByteDance. It all appears to be under the MIT license.

  • anonzzzies 2 years ago

    Ah another weekly bundler/build thing. What a miserable life in the frontend world. Please stop this.

  • wg0 2 years ago

    RDD - "Rust driven development".

  • nprateem 2 years ago

    Just added my first preact to my django site after alpine couldn't cut it. I consciously avoid anything needing the js build nonsense. So far so good.

  • Aeolun 2 years ago

    I think this is the better Webpack right? The better Vite is called Farm.

    To be fair, both are improvements over the existing tools, if not entirely compatible.

  • jaequery 2 years ago

    I can't wait for Deno to get rid of all these bundlers

  • aliasxneo 2 years ago

    I clicked the link and had a weird experience. Sort of a cold, solemn spirit overcame me as I was, once again, presented with a landing page complete with three to six prominently displayed buzzwords. Perhaps even deja vu, a la Groundhog Day, where I've been subjected to this same thing, over and over again. Framework. Rust. Javascript.

  • WesolyKubeczek 2 years ago

    I tried rsbuild recently to upgrade from webpack. It panicked.

    So I just went middle ground and ditched Babel for swc.

  • floydnoel 2 years ago

    does it have any Vite compatibility? or just webpack?

  • brtknr 2 years ago

    Copyright ByteDance? Ouch

  • baxuz 2 years ago

    stop

  • fourseventy 2 years ago

    Just what the world needs, another javascript bundler.

  • auggierose 2 years ago

    It's from ByteDance.