修复 bug

This commit is contained in:
eafonyang
2026-06-12 15:58:08 +08:00
parent 56a76e68ef
commit 1b0b447eee
10 changed files with 135 additions and 20 deletions
+16
View File
@@ -79,7 +79,23 @@ export default defineConfig({
input: {
i: path.resolve(PROJECT_ROOT, "client", "i.legacy.html"),
},
output: {
manualChunks(id) {
if (!id.includes("node_modules")) return;
// Match modern build: echarts is lazy-loaded on EQ/Effects pages.
if (
id.includes("/echarts/") ||
id.includes("/zrender/") ||
id.includes("\\echarts\\") ||
id.includes("\\zrender\\")
) {
return "echarts-vendor";
}
},
},
},
// streamdown pulls @shikijs/langs + mermaid; both lazy-loaded with AIPage.
chunkSizeWarningLimit: 15000,
},
server: {
port: 5173,