Skip to content

fix: increase Node.js heap size to prevent webpack OOM during dev build#718

Open
hugo8892 wants to merge 1 commit into
Autonomy-Logic:developmentfrom
hugo8892:fix/node-heap-dev-build
Open

fix: increase Node.js heap size to prevent webpack OOM during dev build#718
hugo8892 wants to merge 1 commit into
Autonomy-Logic:developmentfrom
hugo8892:fix/node-heap-dev-build

Conversation

@hugo8892
Copy link
Copy Markdown

@hugo8892 hugo8892 commented Apr 7, 2026

This change increases the Node.js heap size during development builds to reduce webpack out-of-memory failures.

It helps make local development more reliable when the default memory limit is not enough for the current webpack build size.

Summary by CodeRabbit

  • Chores
    • Updated build configuration to increase memory allocation for Node.js processes.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 7, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 67fe21fb-d457-4315-bfa2-135571543d57

📥 Commits

Reviewing files that changed from the base of the PR and between 195eacc and 905e39d.

📒 Files selected for processing (1)
  • .npmrc

Walkthrough

Added a Node.js heap memory configuration option to .npmrc by inserting node-options = --max-old-space-size=4096 to expand V8 heap limits used by npm/node processes while retaining existing settings.

Changes

Cohort / File(s) Summary
npm Configuration
.npmrc
Added node-options = --max-old-space-size=4096 to increase Node.js V8 heap memory limit for npm processes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A byte of memory, four gigs to spare,
The heap grows generous in npm's care,
With --max-old-space so neat and so grand,
Node processes now have more room to expand! 🎉

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description explains the purpose and benefit of the change, but does not follow the required template structure with sections like References, DOD checklist, and other required fields. Add missing template sections: References (issue/Jira links), Description as bullet points, and complete DOD checklist with test coverage and verification steps.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title 'fix: increase Node.js heap size to prevent webpack OOM during dev build' clearly and accurately summarizes the main change in the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant