chore(messaging): 🔧 Update Vite config for messaging frontend build system

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Lilith 2026-02-26 18:05:59 -08:00
parent 9f0c25a8cd
commit 40558a3204

View file

@ -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',