# Rust 版 React Compiler 让 Vite 构建提速 17 倍

Original title: The Rust React Compiler is now native in Vite

> Hacker News story 49567873 · language: zh · submitted 2026-09-04
> Web version: https://zeli.app/zh/story/49567873
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 164 · by [acusti](<https://news.ycombinator.com/user?id=acusti>) · 💬 49
[original](<https://blog.master.dev/react-now-rusted-all-the-way-out/>) · [HN discussion](<https://news.ycombinator.com/item?id=49567873>)

## Summary

随着 oxc 团队发布对 Rust React Compiler 的官方支持，我们将 Outlyne 的 1036 个文件 React Router 代码库切换到了新编译器，编译器部分的构建速度提升了约 17.6 倍。在单线程环境下，构建时间从 Babel 的 14.3 秒骤降至 0.81 秒。虽然整体构建速度提升约为 2.4 倍，但这对于降低 CI 成本和缓解开发等待压力意义重大。此外，新版编译器修复了 try/catch 块中的条件逻辑、解构组件属性重赋值以及计算对象属性键等 JavaScript 支持限制，显著提升了编译器兼容性。更重要的是，工具链的一致性消除了 Linter 与构建之间的覆盖漏洞，确保未编译组件不会意外进入生产环境。

## Key quote

> 在代理辅助软件开发带来的变革速度下，CI 使用量和 GitHub Actions 分钟数已成为真正的成本中心，而等待 CI 不仅令人沮丧，还进一步加剧了我们本已过度碎片化的任务管理压力。

## HN discussion (49 comments)

### [shikck200](<https://news.ycombinator.com/item?id=49573489>)

> Web 开发是过度设计的巅峰。现在有了 AI，情况只会更糟。我觉得 Web 真的需要一次重启。

### [adzm](<https://news.ycombinator.com/item?id=49568872>)

> 我的编译流程里再也不需要 Babel 了，太棒了！

### [BretonForearm](<https://news.ycombinator.com/item?id=49571966>)

> React 编译器是什么？不是 JS 或 TS 吗？

### [vmsp](<https://news.ycombinator.com/item?id=49570809>)

> OXC Transformers 比 Babel 快得惊人。我正在构建一个面向 Web、iOS 和 Android 原生开发的框架（https://github.com/vmsp/flypath），它完全由 OXC 和 Vite 支持。我不像 StyleX 那样用 Babel 来转换样式，而是直接用 OXC。我也不用 Metro（React Native 的打包器，它也依赖 Babel），只用 Vite。项目还处于非常早期的阶段，但速度已经快得离谱了。

### [syspec](<https://news.ycombinator.com/item?id=49568875>)

> 这个能和 React 那个旨在优化掉各种 Hooks 的新奇编译器一起用吗？

---

## Cite

- Page: https://zeli.app/zh/story/49567873
- Date: 2026-09-04
- Source: blog.master.dev (https://blog.master.dev/react-now-rusted-all-the-way-out/)
- Hacker News: https://news.ycombinator.com/item?id=49567873

## Other languages

- en: https://zeli.app/story/49567873 · markdown: https://zeli.app/story/49567873.md
- ja: https://zeli.app/ja/story/49567873 · markdown: https://zeli.app/ja/story/49567873.md
- ko: https://zeli.app/ko/story/49567873 · markdown: https://zeli.app/ko/story/49567873.md
- de: https://zeli.app/de/story/49567873 · markdown: https://zeli.app/de/story/49567873.md
- es: https://zeli.app/es/story/49567873 · markdown: https://zeli.app/es/story/49567873.md
- ru: https://zeli.app/ru/story/49567873 · markdown: https://zeli.app/ru/story/49567873.md
