From 34fd2f0259141d4a7707c3eddef588ed8b3a3ae4 Mon Sep 17 00:00:00 2001 From: shuaiplus <2327005759@qq.com> Date: Sat, 25 Jul 2026 22:49:02 +0800 Subject: [PATCH] build: optimize Rolldown chunk splitting --- webapp/vite.config.ts | 83 ++++++++++++------------------------------- 1 file changed, 22 insertions(+), 61 deletions(-) diff --git a/webapp/vite.config.ts b/webapp/vite.config.ts index 06c057e..354a582 100644 --- a/webapp/vite.config.ts +++ b/webapp/vite.config.ts @@ -258,39 +258,12 @@ function searchIndexPolicyPlugin(isDemo: boolean): Plugin { }; } -function resourcePriorityPlugin(isDemo: boolean): Plugin { - return { - name: 'nodewarden-resource-priority', - enforce: 'post' as const, - transformIndexHtml(html: string) { - if (isDemo || !html.includes('/assets/app-suite-')) return html; - - const scriptMatch = html.match(/^\s*