Skip to content

Commit ba3036e

Browse files
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

0 commit comments

Comments
 (0)