Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

General Translation

Documentation · Report Bug

@generaltranslation/compiler

Build plugin for compile-time optimization of GT translation components. Works with webpack, Vite, Rollup, and esbuild.

Installation

npm install @generaltranslation/compiler

Usage

If 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.