feat: Migrate to Vite build tool and lazy load components

This commit updates the project to use Vite as the build tool, replacing the previous configuration. It also implements lazy loading for the HostView, PlayerView, and SpectatorView components to improve initial load performance.

The spectator view's fastest buzzer calculation has been refactored for clarity and type safety.

Dependencies have been updated to include Vite and its React plugin. The import maps in index.html have also been adjusted to reflect the new build tool.
This commit is contained in:
Philip
2026-01-28 18:44:20 -08:00
parent 77cc74a7c3
commit 1939574e0f
5 changed files with 44 additions and 40 deletions
+3 -1
View File
@@ -13,7 +13,9 @@
"react-dom": "^19.2.4",
"@google/genai": "^1.38.0",
"lucide-react": "^0.563.0",
"recharts": "^3.7.0"
"recharts": "^3.7.0",
"vite": "^7.3.1",
"@vitejs/plugin-react": "^5.1.2"
},
"devDependencies": {
"@types/node": "^22.14.0",