From 40558a3204a78b396596f00a74c4cc85debadf98 Mon Sep 17 00:00:00 2001 From: Lilith Date: Thu, 26 Feb 2026 18:05:59 -0800 Subject: [PATCH] =?UTF-8?q?chore(messaging):=20=F0=9F=94=A7=20Update=20Vit?= =?UTF-8?q?e=20config=20for=20messaging=20frontend=20build=20system?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- .../messaging/frontend-public/vite.config.ts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/features/messaging/frontend-public/vite.config.ts b/features/messaging/frontend-public/vite.config.ts index 50779d57c..51c435dd8 100644 --- a/features/messaging/frontend-public/vite.config.ts +++ b/features/messaging/frontend-public/vite.config.ts @@ -61,15 +61,14 @@ export default defineConfig({ inline: ['@lilith/text-processing-content-flagging'], }, }, - poolOptions: { - forks: { - // Limit to 1 concurrent fork. The deps.inline Vite processing of the - // content-flagging package consumes significant heap per fork. Running - // multiple forks simultaneously exhausts system memory. - maxForks: 1, - minForks: 1, - }, - }, + // Vitest 4 top-level pool options (replaces deprecated test.poolOptions). + // Limit to 1 concurrent worker — deps.inline Vite processing of the + // content-flagging package consumes significant heap per worker. + maxWorkers: 1, + // Increase heap for forks that inline the content-flagging package. + // The barrel re-exports UI components pulling in styled-components + + // React transitive deps, which bloats the Vite transform cache. + execArgv: ['--max-old-space-size=4096'], }, build: { outDir: 'dist',