Native Macro Transform for Vite
· 3 min read
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.

