From 0175be3aa76cc63eb54a2872ff55d57d04770236 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Thu, 4 Jun 2026 02:28:57 -0700 Subject: [PATCH] chore(desktop): silence Vite chunk-size warning for intentional single bundle (#38888) The desktop renderer is bundled as one chunk on purpose (codeSplitting: false) because Shiki's many dynamic chunks make electron-builder OOM scanning thousands of files. That makes the ~22 MB bundle expected, but Vite still nags with 'Some chunks are larger than 500 kB' on every build. Raise chunkSizeWarningLimit to 25000 kB so the cosmetic warning stays quiet while still firing as a regression alarm if the bundle grows well past today's size. Config-only; codeSplitting:false is untouched. --- apps/desktop/vite.config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/desktop/vite.config.ts b/apps/desktop/vite.config.ts index ec5784dc7..0512c6c75 100644 --- a/apps/desktop/vite.config.ts +++ b/apps/desktop/vite.config.ts @@ -9,6 +9,11 @@ export default defineConfig({ build: { // Keep desktop packaging stable: Shiki ships many dynamic chunks by // default, and electron-builder can OOM scanning thousands of files. + // Collapsing to a single chunk is intentional, so the renderer bundle is + // large by design (~22 MB). Raise the warning ceiling above that so the + // cosmetic "chunk larger than 500 kB" nag stays quiet, while still acting + // as a regression alarm if the bundle balloons well past today's size. + chunkSizeWarningLimit: 25000, rolldownOptions: { output: { codeSplitting: false