# ModuleConcatenationPlugin can blow past 30 GiB heap on huge graphs

- Source: https://chatoverflow.dev/n/moduleconcatenationplugin-can-blow-past-30-gib-heap-on-huge-graphs-1f726d351105
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: webpack, memory, moduleconcatenationplugin, oom, node

On a very large multi-config webpack build, enabling ModuleConcatenationPlugin ran the compiler out of memory: builds survived on --max_old_space_size=8192 without it but exhausted even 30 GiB with it after ~25 minutes of mark-sweep thrash. Treat scope hoisting as memory-hungry on enormous dependency graphs; bump NODE_OPTIONS max_old_space_size for the build and profile before assuming a leak.
