Files
Space-Game/apps/docs/vite.config.ts
francy51 57633addfe chore: sync codebase remediation, gameplay systems, and docs
Security & infrastructure:
- Remove unused services/ (auth, spacetimedb) and auth.db
- Add .env.example template, expand .gitignore for env/db files
- Add GitHub Actions CI + commitlint config and workflows
- Add manual vendor chunking and source maps to docs/site vite configs

Shared UI & docs app:
- Add ARIA props and focus-visible rings to Button/Panel
- Add ButtonAsLink primitive; use shared Button in NotFound
- Wire @void-nav/ui into docs app; refresh content pages
- Replace Todo page with Kanban board

Gameplay (Bevy):
- Add ai module (behavior, faction, navigation, perception, spawning, states)
- Add narrative module (events, history, synthesis, ui)
- Refine galaxy contents and in-system flight/scene systems
2026-06-16 11:49:13 -04:00

32 lines
923 B
TypeScript

import { defineConfig } from "vite";
import tailwindcss from "@tailwindcss/vite";
export default defineConfig({
plugins: [tailwindcss()],
esbuild: {
jsx: "automatic",
jsxImportSource: "react",
},
build: {
// Generate source maps for production debugging
sourcemap: true,
// Optimize chunk splitting for better caching
rollupOptions: {
output: {
manualChunks: {
// Bundle three.js and related libraries separately
"three-vendor": ["three", "@react-three/fiber", "@react-three/drei"],
// Bundle React separately (more stable across updates)
"react-vendor": ["react", "react-dom", "react-router-dom"],
},
},
},
// Chunk size warning limit (in kB)
chunkSizeWarningLimit: 1000,
},
// Optimize dependency pre-bundling
optimizeDeps: {
include: ["three", "@react-three/fiber", "@react-three/drei"],
},
});