# General Translation Changelog: compiler 1.0.0 / gt-next 6.7.0: Build-time optimisations for every React app
URL: https://generaltranslation.com/en-GB/blog/compiler_v1_0_0_gt-next_v6_7_0.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: 
Authors: Ernest McCarter
Published: 2025-10-10

## Overview

We are very excited to announce the release of @general-translation/compiler v1.0.0.

As we stated in our `gt-next@6.2.0` release, we believe the future of i18n libraries lies in build-time processing. Earlier this year, we released an SWC plugin for `gt-next` that enabled optimisations such as compile-time hashing and improved string translation during development. While this gave our team an excellent (albeit intense) introduction to compiler plugins, its scope was limited to Next.js projects.

We&#39;re following through on our commitment to build-time processing by releasing this general-purpose React compiler plugin. This means all the build-time optimisations from `gt-next` are now available to every `gt-react` user!

## Setup

### Configuration

| Option               | Type    | Default  | Description                                                                                   |
| -------------------- | ------- | -------- | --------------------------------------------------------------------------------------------- |
| `compileTimeHash`    | boolean | `true`   | Enables compile-time hashing                                                                  |
| `disableBuildChecks` | boolean | `false`  | Prevents errors from being thrown when invalid library usage is detected                      |
| `logLevel`           | string  | `'warn'` | Controls the logging level. Options: `'silent'` | `'error'` | `'warn'` | `'info'` | `'debug'` |

**Note**:
For `gt-next`, to satisfy a backwards-compatibility requirement, if you set `compileTimeHash` to `false`, the entire plugin will be disabled.

### gt-react

First, install the package:

```bash
npm install @generaltranslation/compiler
```

**Vite**

```js
// vite.config.js
import { defineConfig } from 'vite'
import { vite as gtCompiler } from '@generaltranslation/compiler'

export default defineConfig({
  plugins: [gtCompiler()],
})
```

**Webpack**

```js
// webpack.config.js
const { webpack: gtCompiler } = require('@generaltranslation/compiler')

module.exports = {
  plugins: [gtCompiler()],
}
```

**Rollup**

```js
// rollup.config.js
import { rollup as gtCompiler } from '@generaltranslation/compiler'

export default {
  plugins: [gtCompiler()],
}
```


### gt-next

You do not need to install any additional packages.

For `gt-next`, we&#39;re deprecating `experimentalSwcPluginOptions` in favour of the new `experimentalCompilerOptions` field. The main difference is that you must now specify which compiler type to use: `'swc'` or `'babel'`. The `'swc'` compiler is used by default, but you can enable the new Babel-based compiler by setting the `type` field to `'babel'`.

```js
// next.config.js
import { withGTConfig } from 'gt-next'

export default withGTConfig(nextConfig, {
  experimentalCompilerOptions: {
    type: 'babel',
  },
})
```


## Conclusion

We have much more work planned for the compiler, so expect frequent updates over the coming months.

## Sitemap

See the full [sitemap](https://generaltranslation.com/sitemap.md) for all pages.
