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