- 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`).
31 lines
634 B
TypeScript
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
|
|
],
|
|
}
|
|
})
|