Rspack

Rspack

@rspack.dev

Rstack is a lightning-fast JavaScript toolchain that includes Rspack, Rsbuild, Rslib, Rspress, Rsdoctor, Rstest and Rslint.

1K followers3 following278 posts

πŸš€ Rstest 0.12.4 adds screenshot assertions. Catch visual regressions for pages and elements in Browser Mode. Compare against PNG baseline and inspect pixel diffs on mismatch.

Rspack reposted

Rspack reposted

We moved the Zephyr Cloud dashboard (1 host + 7 Module Federation remotes) from Rspack to Rsbuild 2, then let Rsdoctor 2 drive the cleanup. First load: βˆ’30% gzip Build: 112s β†’ 90s 15-route journey: βˆ’39% Numbers 🧡

Rspack reposted

In the next release, Rspack will support `codeFilter` for loaders ⚑ Run a loader only on modules containing specific code, such as a "use foo" directive. Skip unnecessary transforms and speed up your builds

Rspack reposted

Rspack now powers massive codebases at some of the world’s largest companies, and feedback from these teams keeps making it better. Engineers at Microsoft and OpenAI have contributed over 100 PRs and issues. Thank you for all the contributions!

Rspack reposted

We started Rsdoctor by visualizing build data for human developers. Now AI agents do much of the optimization work, so we’re making Rsdoctor more agent-friendly by giving them access to that data through our CLI

Rspack@rspack.dev

πŸ¦€ Rsdoctor 2.0 is here! ⚑ 40–60% faster analysis πŸ“¦ 56% smaller install size πŸ€– Agent-driven build analysis 🧩 One report for multi-compiler builds Explore what’s new πŸ‘‡ rsdoctor.rs/blog/release...

πŸ¦€ Rsdoctor 2.0 is here! ⚑ 40–60% faster analysis πŸ“¦ 56% smaller install size πŸ€– Agent-driven build analysis 🧩 One report for multi-compiler builds Explore what’s new πŸ‘‡ rsdoctor.rs/blog/release...

rsdoctor.rsAnnouncing Rsdoctor 2.0 - RsdoctorWe are excited to announce Rsdoctor 2.0! πŸŽ‰ Rsdoctor is a build analysis tool designed for Rspack. It helps developers investigate problems through visual reports and provides agents with data for auto...
Jiahan Chen@chenjiahan.bsky.social

Rspack 1.0 is only two years old, but these numbers make it feel a generation behind 🫒 I hope we’ll say the same about 2.x when 3.0 ships

Rspack reposted

Rspack 1.0 is only two years old, but these numbers make it feel a generation behind 🫒 I hope we’ll say the same about 2.x when 3.0 ships

Less duplicate code. Smaller bundles. πŸ“¦ We've improved Rspack's chunking algorithm to reduce duplicate modules across chunks. In a large production project, this change resulted in: β€’ -2.53% raw JS size β€’ -1.51% chunks

A small milestone: 10M weekly downloads for Rspack Thank you for building with us ❀️

Running agents in parallel puts more pressure on memory. We’re making Rspack use less memory to help

Jiahan Chen@chenjiahan.bsky.social

We’re putting more focus on memory usage in Rspack and Rsbuild, especially for large codebases or when running multiple agents in parallel. Recent optimizations reduced peak dev memory by 19.5% in one large project, with faster startup and rebuilds too

Rspack reposted

We’re putting more focus on memory usage in Rspack and Rsbuild, especially for large codebases or when running multiple agents in parallel. Recent optimizations reduced peak dev memory by 19.5% in one large project, with faster startup and rebuilds too

Less code to ship!

Jiahan Chen@chenjiahan.bsky.social

Rspack's code splitting balances bundle size, chunk count, and build time. The next release adds `splitChunks.dedupDepth` to spend more time finding shared code and reducing duplication. In one real-world app with many routes, using this option cut total output size by 9.9%

Rspack reposted

Rspack's code splitting balances bundle size, chunk count, and build time. The next release adds `splitChunks.dedupDepth` to spend more time finding shared code and reducing duplication. In one real-world app with many routes, using this option cut total output size by 9.9%

πŸ¦€ Rstest 0.12 is out! More you can test, and faster ways to run it. 🎭 E2E testing with @rstest/playwright 🧩 Test Module Federation remotes ⚑ vmThreads / vmForks: 9.5Γ— faster on a 2,400-file suite πŸ“¦ jsdom / happy-dom load faster out of the box πŸ› οΈ New JavaScript API for tools

Rspack reposted

We recently upgraded an internal monorepo from Rspack v1 to v2. Build time dropped ~45% Then we noticed the repo had added 4 million lines over the past 6 months. About 80% was TS, mostly written by agents Still plenty to do to keep Rspack and JS tooling fast enough for agents

πŸ¦€πŸ¦Š Coming in the next Lynx release: - build Lynx apps with Rsbuild - ReactLynx component libraries with Rslib - test with Rstest

Rspack will also get 2.4 MB smaller ⚑

Jiahan Chen@chenjiahan.bsky.social

SWC's binary just got 2.4MB smaller. Rspack and Turbopack could benefit too. Thanks @swwind233 for the optimizations

Rspack reposted

Great to see Vercel contributing to React Compiler's Rust implementation! Official crates are now available, so SWC and Rspack have switched from forked crates to the official ones.

Rspack reposted

TanStack Start + Rsbuild keeps getting faster πŸš€ @CongCongPan optimized import-protection reporting, making SSR builds 23.4% faster and client builds 10% faster in a real-world project

Rspack reposted

We originally built Rslib to unify ByteDance’s web apps and JS libs around Rspack. Getting there wasn’t easy. Rspack inherited an architecture primarily designed for bundling apps, so we made many improvements to produce clean ESM for libs.

Rspack@rspack.dev

πŸ¦€ Rslib 1.0 is here! πŸ“¦ Multiple output formats, including Module Federation πŸ”€ Bundled or bundleless βš›οΈ Component libraries across frameworks 🎨 Built-in CSS and asset support πŸ”΅ TypeScript 7 support for fast declarations See what's new in Rslib 1.0 πŸ‘‡ rslib.rs/blog/v1-0

πŸ¦€ Rslib 1.0 is here! πŸ“¦ Multiple output formats, including Module Federation πŸ”€ Bundled or bundleless βš›οΈ Component libraries across frameworks 🎨 Built-in CSS and asset support πŸ”΅ TypeScript 7 support for fast declarations See what's new in Rslib 1.0 πŸ‘‡ rslib.rs/blog/v1-0

rslib.rsAnnouncing Rslib 1.0 - RslibRslib 1.0 is here, focusing on library build capabilities across use cases and the developer experience, with upgrade guidance and a look at what's next.

Rspack reposted

Interesting to see ESLint exploring a unified JS/TS parsing toolkit. Our approach in Rslint is to treat the TS 7 parser/compiler as the single source of truth. Linting and type checking share the same program, so each file only needs to be parsed once, and its AST can be reused

ESLint@eslint.org

The RFC 'feat: New JavaScript/TypeScript parsing toolkit' is now in the Initial Commenting phase. https://github.com/eslin...

Rspack reposted

Cool to see Sentry already trying Rspack 2.2's new compact ID strategy, cutting gzipped JS by 152KiB. If all goes well, it'll be the default in a future minor release. We made a silly API typo and used "compat" instead of "compact". Guess we'll support both namesπŸ˜‚

Rspack@rspack.dev

πŸ¦€ Rspack 2.2.0 is out! 30+ performance optimizations: ⚑ Production build ~5% faster 🎨 CSS parsing 3.7Γ— faster πŸ“ CopyRspackPlugin 3–4Γ— faster πŸ”₯ HMR skips unnecessary CSS ~385 β†’ ~6 ms rspack.rs/blog/announc...

Rspack reposted

And Rstack ecosystem keeps shipping: πŸ¦€ Rsbuild β€” Solid v2 support, Octane template πŸ¦€ Rstest β€” Playwright E2E, Module Federation πŸ¦€ Rslint β€” 500+ native rules, JS API πŸ¦€ Rslib β€” TypeScript 7 support, v1.0 soon πŸ¦€ Rspress β€” 100/100 agent-friendly score

Rspack@rspack.dev

πŸ¦€ Rspack 2.2.0 is out! 30+ performance optimizations: ⚑ Production build ~5% faster 🎨 CSS parsing 3.7Γ— faster πŸ“ CopyRspackPlugin 3–4Γ— faster πŸ”₯ HMR skips unnecessary CSS ~385 β†’ ~6 ms rspack.rs/blog/announc...

Rspack reposted

In the next release, Rsbuild will enable chunk splitting by default for Node.js builds. This reduces duplicate code across chunks and makes SSR apps more efficient. The benchmark below is a TanStack Start stress test case with many routes and shared modules:

Did you know? 🀯 Rspress just hit 100/100 (A+) for agent-friendly docs β€” Markdown access, llms.txt and more! πŸ’―

Meet the Rstack Agent Plugin. πŸ”Œ Built on Agent Plugins 1.0, it works across supported agent clients, including: πŸ‘‰ GitHub Copilot
 πŸ‘‰ Codex πŸ‘‰ Cursor
and more Install one plugin to get the complete collection of Rstack skills πŸ¦€

Time to upgrade to Rspack v2!

Jiahan Chen@chenjiahan.bsky.social

Just noticed that Slack is using Rspack v2 Less than 4 months since launch, v2 already accounts for 30% of Rspack downloads and 40% of Rsbuild downloads Adoption is moving fast πŸš€

Rspack reposted

Just noticed that Slack is using Rspack v2 Less than 4 months since launch, v2 already accounts for 30% of Rspack downloads and 40% of Rsbuild downloads Adoption is moving fast πŸš€

Rspack reposted

I used to dislike webpack’s loader design, but over time I’ve come to appreciate just how much it gets right: β€’ Easy to parallelize: Loaders are standalone modules, so they can run in workers with little effort. I saw Rspack’s parallel loader feature cut babel-loader time by 80% in one large app

Building a library with WebAssembly? πŸ§™πŸ»Rslib 1.0 beta supports `.wasm` imports with two output modes for different consumer needs: - `compile` adds runtime loading glue - `preserve` keeps the import for the consumer's bundler Simple source. Consumer-ready output. πŸ¦€