Files
Charon/frontend/vite.config.ts
GitHub Actions b37922de28 hore(frontend): remove redundant test configuration from vite config
Removes the duplicate 'test' block from vite.config.ts to ensure vitest.config.ts is the single source of truth for test configuration. This eliminates potential conflicts and ensures E2E test exclusion rules are strictly enforced.
2026-02-06 04:27:38 +00:00

31 lines
737 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true
}
}
},
build: {
outDir: 'dist',
sourcemap: true,
// TEMPORARY: Disable code splitting to diagnose React initialization issue
// If this works, the problem is module loading order in async chunks
chunkSizeWarningLimit: 2000,
rollupOptions: {
output: {
// Disable code splitting - bundle everything into one file
manualChunks: undefined,
inlineDynamicImports: true
}
}
}
})