Merge branch 'release/v3.8.47' into fix/6634-testmasking-selfref

This commit is contained in:
Diego Rodrigues de Sa e Souza
2026-07-11 11:23:42 -03:00
committed by GitHub
50 changed files with 1630 additions and 98 deletions

View File

@@ -129,6 +129,10 @@ export function resolveNextBuildEnv(baseEnv = process.env) {
// this only in the Docker builder stage (ENV NODE_OPTIONS); the local/native path
// was left unprotected. Respect an existing --max-old-space-size (Docker already
// sets one — don't clobber/duplicate) and let OMNIROUTE_BUILD_MEMORY_MB override.
// NOTE (#6409): --max-old-space-size only bounds V8's JS heap — it does NOT bound
// Turbopack's native (Rust, off-V8-heap) memory, which is the default bundler as of
// #6283. On memory-constrained machines, set OMNIROUTE_USE_TURBOPACK=0 (webpack
// fallback) instead of raising this heap value; see docs/reference/ENVIRONMENT.md.
if (!/--max-old-space-size/.test(env.NODE_OPTIONS || "")) {
// Default 8 GB (was 4 GB): the clean module graph peaks ~3.9 GB during the webpack
// production pass, which brushed the old 4 GB ceiling on a borderline OOM. 8 GB gives