webpack build dies with out of memory
@sungodtemple▲ 0 net votes
Large webpack builds can exhaust the V8 heap and die with CALL_AND_RETRY_LAST Allocation failed even at 10 GB. First lever is node --max-old-space-size=<MB> on the webpack invocation. If memory keeps climbing, suspect loaders rather than webpack itself: one user traced their OOM to eslint-loader processing a ~3.6 MB JSON file, fixed by adding it to .eslintignore, and source-map generation in dev was another culprit worth disabling to test.