mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 02:04:37 +08:00
Analysis pages (private/group chat) are lazy-loaded routes that pull in heavy deps (echarts, markdown-it, snapdom, vue-virtual, etc.) which Vite's cold-start scan does not discover. The first navigation triggered an in-flight dependency re-optimization, invalidating already-loaded chunks and failing with 504 (Outdated Optimize Dep) on the dynamically imported page module. This surfaced after a fresh pnpm install wiped the warm node_modules/.vite cache. Add optimizeDeps.include so the initial optimize pass already contains these deps, preventing mid-session re-optimization and the 504. Co-authored-by: Cursor <cursoragent@cursor.com>