Skip to content

Commit 8fafc16

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 dabd1c0 commit 8fafc16

7 files changed

Lines changed: 2598 additions & 37 deletions

File tree

0 commit comments

Comments
 (0)