fix: increase Node.js heap size to prevent webpack OOM during dev build#699
fix: increase Node.js heap size to prevent webpack OOM during dev build#699hugo8892 wants to merge 1 commit into
Conversation
WalkthroughThe Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.npmrc (1)
2-2: Consider documenting the increased memory requirement.The 4GB heap size assumes developers have at least 4GB of available RAM. Consider adding this to the README or CONTRIBUTING guide as a system requirement to help new contributors prepare their development environment.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.npmrc at line 2, The .npmrc sets node-options = --max-old-space-size=4096 which raises the Node heap to 4GB; add a short note to the project's README or CONTRIBUTING guide stating that local development requires at least 4GB of available RAM (or adjust system requirements wording) so contributors are aware of the increased memory requirement and any recommended steps (e.g., closing other apps or using swap) before running npm scripts that rely on this setting.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.npmrc:
- Line 2: The .npmrc sets node-options = --max-old-space-size=4096 which raises
the Node heap to 4GB; add a short note to the project's README or CONTRIBUTING
guide stating that local development requires at least 4GB of available RAM (or
adjust system requirements wording) so contributors are aware of the increased
memory requirement and any recommended steps (e.g., closing other apps or using
swap) before running npm scripts that rely on this setting.
Summary
node-options = --max-old-space-size=4096to.npmrcto prevent webpack from crashing with out-of-memory during development buildsFATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memoryTest plan
npm run start:devand verify the app starts without OOM crashSummary by CodeRabbit