From de21c128fcdddd5fd6e258f5e584e25f90c50c64 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sat, 24 Oct 2026 13:00:54 +0200 Subject: [PATCH] fix(storybook): hold the Storybook build to the app's chunk-size ceiling The panel build allows 1500 kB chunks, but the Storybook build kept Vite's 500 kB default, so every build warned about the bundled UI and the axe engine from the accessibility addon. --- frontend/.storybook/main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/.storybook/main.ts b/frontend/.storybook/main.ts index 977f4d309..aab31c287 100644 --- a/frontend/.storybook/main.ts +++ b/frontend/.storybook/main.ts @@ -15,6 +15,8 @@ const config: StorybookConfig = { if (viteConfig.build) { viteConfig.build.outDir = undefined; viteConfig.build.emptyOutDir = false; + // Storybook bundles the whole UI plus the axe engine; hold it to the app's chunk ceiling. + viteConfig.build.chunkSizeWarningLimit = 1500; if (viteConfig.build.rollupOptions) { viteConfig.build.rollupOptions.input = undefined; }