Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.16 KB

File metadata and controls

38 lines (28 loc) · 1.16 KB

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.