Build plugin for compile-time optimization of GT translation components. Works with webpack, Vite, Rollup, and esbuild.
npm install @generaltranslation/compilerIf you're using gt-next, the plugin is configured automatically. For manual setup:
// vite.config.js
import { vite as gtCompiler } from '@generaltranslation/compiler';
export default {
plugins: [gtCompiler()],
};See the full documentation for guides and API reference.