An esbuild plugin that automatically adds Babel with @lingui/babel-plugin-lingui-macro to compile Lingui macros (e.g., t, plural, select) during esbuild builds. Version 1.0.2 requires peer dependencies @lingui/cli and @lingui/conf (v5 or v6) and esbuild. Only processes files that import Lingui macros, minimizing overhead. Lightweight alternative to integrating Babel/SWC manually when no other transpiler is in the pipeline. Ships TypeScript types.
npm install esbuild-plugin-lingui-macroNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal setup to use the plugin with esbuild, compiling Lingui macros in entry point.
Ensure your source files import from @lingui/macro.
Use the respective plugin directly for better performance and flexibility.
Upgrade Lingui packages to v5 or v6.
Implement esbuild caching or use SWC for faster transformation.
npm install @lingui/cli --save-dev
Correct import: import { pluginLinguiMacro } from 'esbuild-plugin-lingui-macro'Check your Lingui configuration and source files for macro usage. Ensure @lingui/cli is set up correctly.