跪拜 Guibai
← All articles
Frontend · JavaScript · CSS

Rspack 2.3, TypeScript 7.1 Beta, Bun 1.4.4, Node.js 26 LTS: Frontend Weekly Roundup

By 晓得迷路了 ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

Rspack's SWC integration and TypeScript's content mappers change how frontend builds and validation work, while Bun's `bun fmt` and Node.js 26 LTS give teams new defaults for formatting and production node versions. TanStack Redact offers a real trade-off between bundle size and rendering behavior for anyone shipping large React apps.

Summary

Rspack 2.3 pulls in the SWC Next parser to speed up builds and shrink memory and bundle sizes. It also adds an experimental caching mode that caches loader transformations separately. TypeScript 7.1 Beta ships a programmable API and content mappers, a plugin hook for validating embedded code inside Vue, Svelte, and Astro files, plus source phase imports and a `--target es2026` flag. Bun 1.4.4 brings `bun fmt`, a Prettier-compatible formatter that reads your existing Prettier or oxfmt configs. Node.js 26.13.0 promotes Node 26 to LTS, with updates until April 2029; Node 24 is in maintenance and Node 22 runs until April 2027.

The roundup also covers two in-depth articles. Dominik's talk on dead code, now available as slides with transcript, explains how Sentry used Knip to remove 28,000 lines. Alexandre Trotel's guide walks through React internals. A Juejin post digs into streaming partial JSON from AI models, laying out three engineering hurdles: completing truncated JSON, preventing flicker, and keeping recovered data out of misuse.

On the tooling side, MicroKit offers 54 CSS-first React micro-interaction components ready to copy. TanStack Redact swaps in for React/ReactDOM in the browser to cut bundle size, but it renders synchronously and skips time slicing. react-window 2.5 adds a `scrollElement` prop and a styleless `useVirtualizer()` hook for custom virtual layouts.

Takeaways
— Rspack 2.3 integrates the SWC Next parser, improving build speed and cutting memory and bundle size.
— Rspack 2.3 introduces an experimental caching mode that caches loader transformation results separately.
— TypeScript 7.1 Beta adds a programmable API and content mappers, a plugin point to validate embedded code in Vue, Svelte, and Astro files.
— TypeScript 7.1 Beta also adds source phase imports and a `--target es2026` compiler option.
— Bun 1.4.4 ships `bun fmt`, a Prettier-compatible formatter that reads existing Prettier or oxfmt configs.
— Node.js 26.13.0 makes Node.js 26 an LTS release, with support until April 2029.
— Sentry removed 28,000 lines of dead code using Knip, as described in Dominik's talk now available as slides with transcript.
— react-window 2.5 adds a `scrollElement` prop and a styleless `useVirtualizer()` hook for custom virtual layouts.
— TanStack Redact can replace React/ReactDOM in the browser to reduce JS bundle size, but it renders synchronously and lacks time slicing.
Conclusions

Folding the SWC Next parser into Rspack's core makes parser-level performance the current battleground for build speed, not just incremental caching.

TypeScript's content mappers let the compiler validate code embedded in Vue, Svelte, and Astro files, which could shift template correctness checks from dedicated linters to the type checker.

Bun's `bun fmt` reading existing Prettier or oxfmt configs removes a migration barrier, so teams can adopt Bun without re-litigating formatting rules.

Node.js 26 reaching LTS within a year of Node 24's release leaves production users with a clear current target, while Node 22's longer maintenance window softens the upgrade squeeze.

Concepts & terms
content mappers
A plugin hook in TypeScript 7.1 that lets tools validate or transform embedded code inside component files such as Vue, Svelte, and Astro, instead of only processing standalone TypeScript files.
source phase imports
A new import form in TypeScript 7.1 that distinguishes compile-time-only dependencies from runtime ones, letting bundlers and runtimes treat them separately.
bun fmt
A formatter built into Bun 1.4.4 that matches Prettier's output and can read existing Prettier or oxfmt configurations, aimed at fast formatting without additional setup.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗