修复 bug
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user