Files
vibe-kanban/remote-frontend/vite.config.ts
Theo Browne 2af42a7600 Set up React Compiler (#2030)
- Added required deps: `react-compiler-runtime` + `babel-plugin-react-compiler` in `frontend/package.json:70` and `frontend/package.json:99`, plus `remote-frontend/package.json:20` and `remote-frontend/package.json:30` (lockfile updated in `pnpm-lock.yaml`).
2026-01-14 09:11:07 +00:00

31 lines
634 B
TypeScript

import path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [
react({
babel: {
plugins: [
[
'babel-plugin-react-compiler',
{
target: '18',
sources: [path.resolve(__dirname, 'src')],
environment: {
enableResetCacheOnSourceFileChanges: true,
},
},
],
],
},
}),
],
server: {
port: 3002,
allowedHosts: [
".trycloudflare.com", // allow all cloudflared tunnels
],
}
})