{
  "id": 5619759,
  "title": "The Rust React Compiler is now native in Vite",
  "url": "https://urgent.news/2026/09/04/the-rust-react-compiler-is-now-native-in-vite",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-04T17:49:09.000Z",
  "source": {
    "name": "Hacker News",
    "slug": "hacker-news",
    "url": "https://blog.master.dev/react-now-rusted-all-the-way-out/"
  },
  "original_language": "en",
  "account": "On August 4, 2026, the oxc team officially introduced support for the Rust React Compiler, which led to a significant shift in their 1,036-file React Router codebase. By migrating to the Rust compiler, Outlyne, a website builder, experienced a remarkable 17.6× speedup in the compiler portion of their build. The v6.1.0 release of @vitejs/plugin-react introduced experimental native React Compiler support, which can be enabled in Vite config by passing { compiler: true }. For those who cannot use the Vite React plugin, such as those using React Router in framework mode, an alternative is @acusti/vite-plugin-react-compiler, a minimal Vite plugin for React-compiling codebases irrespective of the rest of the build pipeline.\n\nThe headline feature of this change is the substantial speedup, as per Boshen, the oxc project lead. The new Rust compiler is more than 10 times faster than Babel in preliminary benchmarks, with 1,036 files going from 14.3 seconds to just 0.81 seconds (single-threaded). This speedup is crucial for Outlyne, as CI usage and GitHub Actions minutes have become a significant cost center due to the rapid pace of agent-assisted software development. While the compiler portion of the build process remains the primary beneficiary, the overall build time improvement is still notable, with a 2.4× increase in speed (22.1 seconds to 9.3 seconds) in their case.\n\nIn addition to the speed improvements, the new React Compiler has fixed substantial limitations in JavaScript support that were present in the Babel-based version. This includes support for conditional logic in try/catch blocks, reassigning destructured component props in nested closures, and computed object property keys. This expansion in compiler compatibility benefits seven additional functions, providing five improvements from the try/catch fix and two enhancements from the computed object property keys fix. However, some limitations persist, such as the compiler skipping components/hooks with throws inside try blocks and logical assignment operators (??=, &&=, ||=). Nonetheless, using the Rust compiler ensures you will receive future fixes when they become available.\n\nThe shift to the Rust compiler also unifies the full toolchain, ensuring equivalent feature support across the build process. This change simplifies the build configuration, as developers no longer need to rely on multiple versions of the React Compiler. Furthermore, React Router users can simplify their setup by replacing the Vite React plugin with React Router's own plugin and removing other unnecessary dependencies, such as @rolldown/plugin-babel, babel-plugin-react-compiler, and @babel/preset-typescript. The final result is a more efficient, streamlined, and powerful build process.",
  "summary": null,
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}