开发者 · InfoQ
Angular 的 TypeScript 7-Powered 编译器进入测试版,带有基于 Rust 的预处理器
发布于 · 本站收录 2026-11-11 17:02
Angular 团队引入了 ngp,一个编译器预处理器,它使用 Oxc 重写了 Rust 中的分析阶段。它取代了 ngc 对 Transformer API 的依赖,TypeScript 7.0 删除了该 API。早期基准测试显示冷构建速度提高了 2 到 3 倍。预计在 Angular 22 小版本中采用
英文原文标题与摘要
Angular's TypeScript 7-Powered Compiler Enters Beta with Rust-Based Preprocessor
The Angular team has introduced ngp, a compiler preprocessor that rewrites the analysis stage in Rust using Oxc. It replaces ngc's dependence on the Transformer API, which TypeScript 7.0 removed. An early benchmark showed 2x to 3x faster cold builds. Adoption is expected in an Angular 22 minor release; production builds should stay on ngc until then.
本站程序每小时从公开 RSS / 官方博客自动收集,英文内容为机器翻译摘要,已自动过滤低俗、时政等敏感内容;细节以原文为准。