From e111709d69a6e37badbb41ded42020fb1ffa864e Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Fri, 13 Nov 2026 18:30:24 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A1=20perf:=20Keep=20Sentry=20Out=20of?= =?UTF-8?q?=20Boot=20and=20Guard=20Lazy-Only=20Libraries=20(#18121)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * perf: Keep Sentry Out of the Boot HTTP Chunk * build: Fail the Build When a Lazy-Only Library Reaches Boot --- client/vite.config.ts | 63 ++++++++++++++++++++++++++++++++++++++----- 1 file changed, 57 insertions(+), 6 deletions(-) diff --git a/client/vite.config.ts b/client/vite.config.ts index 64eeebed77..cb0e061734 100644 --- a/client/vite.config.ts +++ b/client/vite.config.ts @@ -9,7 +9,7 @@ import { createRequire } from 'module'; import { VitePWA } from 'vite-plugin-pwa'; import { nodePolyfills } from 'vite-plugin-node-polyfills'; import { compression, defineAlgorithm } from 'vite-plugin-compression2'; -import type { Plugin } from 'vite'; +import type { Plugin, Rollup } from 'vite'; import { sandpackConsoleIsolation } from './src/lib/sandpack.ts'; import { bundledThemeBoot, injectThemeCacheVersion } from './src/Providers/bootVersion.ts'; import { localeAliases, resolveLocale, supportedLocales } from './src/locales/resolve.ts'; @@ -97,6 +97,7 @@ export default defineConfig(({ command }) => ({ }, themeCacheVersion(), bootLoadingLabels(), + lazyChunkGuard(), copyPublicAssets(), VitePWA({ /** `auto` emits a parser-blocking `