build(mac): bump webpack heap to 6 GB on the macOS appbundle build (#9967)
macOS x64 appbundle builds keep dying inside webpack's TerserPlugin at 92% (asset processing). Build #1294 on `pgabf-macos-x64` reached `<s> [webpack.Progress] 92% [0] sealing asset processing TerserPlugin` and was killed without producing a V8 fatal-error preamble, which points at the OS reaping the Node process under memory pressure rather than V8 hitting its own heap ceiling. TerserPlugin is already running single-threaded (see web/webpack.config.js, `parallel: false`), so we can't claw memory back by reducing parallelism. Bump the V8 old-space ceiling from 3072 MB to 6144 MB inside the macOS appbundle build only — the helper in pkg/mac/build-functions.sh bypasses `yarn run bundle` and calls `yarn run webpacker` directly (see commit d96e8634), so this knob is independent of the npm script and does not affect linux/pip/Makefile or dev-machine builds. They keep the 3 GB the `bundle` script has been shipping with for years. If this still doesn't get the x64 box past Terser we'll switch the minimiser to esbuild via terser-webpack-plugin's `minify` option; that is a larger and more invasive change so we are trying the cheap fix first.
A
Ashesh Vashi committed
3e1921dcd92d2c285dbdc0f9aeeed77f32e7684f
Parent: d96e863
Committed by GitHub <noreply@github.com>
on 5/22/2026, 9:13:58 AM