Skip to main content

One post tagged with "performance"

View All Tags

Native Macro Transform for Vite

· 3 min read
Andrii Bodnar
Engineering Manager

Lingui macros have always needed a compiler plugin: Babel or SWC turns t`Hello` and <Trans> into runtime calls at build time. In Vite that meant wiring the macro plugin into whichever compiler your framework plugin uses. The new native macro transform removes that step. One option in vite.config.ts, and @lingui/vite-plugin transforms macros itself.

social-card image