Getting GC, process out of memory error while bundling via webpack

前端 未结 1 994
余生分开走
余生分开走 2021-01-05 01:23

Getting following error when bundling my project with webpack. When I have only a few chunk (split) points (require.ensure ones) then it runs okay, but when I increase the s

相关标签:
1条回答
  • 2021-01-05 02:07

    This works when I'm increasing size of node, by default it's around 1GB (not sure exact)

    Running node by increasing it's memory via --max_old_space_size=4092, it works

    Source: https://github.com/webpack/webpack/issues/1875#issuecomment-170663572

    0 讨论(0)
提交回复
热议问题