esbuild-plugin-lingui-macro
v1.0.1
Published
esbuild plugin to compile Lingui macro
Downloads
198
Maintainers
Readme
esbuild-plugin-lingui-macro
esbuild plugin to compile Lingui macro
Description
The plugin will add a babel with @lingui/babel-plugin-lingui-macro
to your esbuild setup.
Plugin will process only files where macro import is found.
If you already have babel or SWC in your esbuild pipeline consider to use @lingui/babel-plugin-lingui-macro
or @lingui/swc-plugin
directly.
Installation
npm install --save-dev esbuild-plugin-lingui-macro
# yarn add --dev esbuild-plugin-lingui-macro
Usage
import { pluginLinguiMacro } from "esbuild-plugin-lingui-macro";
await esbuild.build({
plugins: [pluginLinguiMacro()],
});
License
This package is licensed under MIT license.