From 7a7c42b50c7047e02f3718c9033161e89917f122 Mon Sep 17 00:00:00 2001 From: Echo Date: Tue, 27 Jan 2026 16:03:00 +0100 Subject: [PATCH] Makes bundle visualizer output JSON when in CI (#37633) --- vite.config.mts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vite.config.mts b/vite.config.mts index 0a10b30a5b..30b1dc1511 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -214,7 +214,10 @@ export const config: UserConfigFnPromise = async ({ mode, command }) => { svgr(), // Old library types need to be converted optimizeLodashImports() as PluginOption, - !!process.env.ANALYZE_BUNDLE_SIZE && (visualizer() as PluginOption), + !!process.env.ANALYZE_BUNDLE_SIZE && + (visualizer({ + template: process.env.CI ? 'raw-data' : 'treemap', + }) as PluginOption), MastodonNameLookup(), ], } satisfies UserConfig;