From e7eaabfb7be4c0a3aab856f6b0d41ac4b365ea7a Mon Sep 17 00:00:00 2001 From: Cong-Cong Pan Date: Fri, 1 Nov 2024 11:43:46 +0800 Subject: [PATCH] feat: max memory (#53) --- lib/scenarios/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/scenarios/index.js b/lib/scenarios/index.js index cb243ce5..3a5b88ee 100644 --- a/lib/scenarios/index.js +++ b/lib/scenarios/index.js @@ -57,6 +57,9 @@ async function runRspack(ctx) { const lines = (remainingLine + chunk).split("\n"); remainingLine = lines.pop(); lines.forEach(processLine); + }, + env: { + NODE_OPTIONS: "--max-old-space-size=8192" } } );