Skip to content

Vite Plugin

The Vite plugin provides JSX transformation for HellaJS with hot module replacement (HMR) support.

Terminal window
npm install --save-dev vite-plugin-hellajs

Add the plugin to your vite.config.js:

import { defineConfig } from 'vite';
import viteHellaJS from 'vite-plugin-hellajs';
export default defineConfig({
plugins: [viteHellaJS()]
});

For TypeScript projects, ensure your tsconfig.json includes:

{
"compilerOptions": {
"jsx": "preserve",
"types": [
"@hellajs/dom"
],
}
}