Commit ba3036e
committed
feat(@angular/build): migrate advanced optimization Babel plugins to oxc-parser + magic-string
This change ports the remaining Babel plugins used for Angular build optimizations to a single unified, ultra-fast `oxc-transform` pass using `oxc-parser` and `magic-string`.
Optimization passes migrated:
- TypeScript Enum wrapping
- Class static members elision and wrapping
- Angular metadata elision (setClassMetadata, etc.)
- Top-level pure function call and constructor annotation
For regular optimized builds, this bypasses Babel entirely. For builds with code coverage or linking, it runs Babel first and then processes the output through the new fast path.1 parent 917393a commit ba3036e
6 files changed
Lines changed: 2494 additions & 37 deletions
File tree
- packages/angular/build/src/tools
- babel/plugins
- esbuild
0 commit comments