Skip to content

Remove maxHeapSize from JavaScriptRewriteRpc.Builder in favor of caller-provided NODE_OPTIONS#6803

Merged
pdelagrave merged 4 commits intomainfrom
nodeoptions
Feb 25, 2026
Merged

Remove maxHeapSize from JavaScriptRewriteRpc.Builder in favor of caller-provided NODE_OPTIONS#6803
pdelagrave merged 4 commits intomainfrom
nodeoptions

Conversation

@pdelagrave
Copy link
Copy Markdown
Contributor

@pdelagrave pdelagrave commented Feb 23, 2026

What's changed?

Remove maxHeapSize from JavaScriptRewriteRpc.Builder in favor of caller-provided NODE_OPTIONS

The caller can set any NODE_OPTIONS using builder.environment() including --max-old-space-size.

What's your motivation?

The caller (Moderne CLI) can pass arbitrary NODE_OPTIONS including --max-old-space-size without it being overwritten.

Required by https://github.com/moderneinc/moderne-cli/pull/3333

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

…caller-provided `NODE_OPTIONS`

The caller can set any `NODE_OPTIONS` using `builder.environment()` including `--max-old-space-size`.
@github-project-automation github-project-automation Bot moved this from In Progress to Ready to Review in OpenRewrite Feb 25, 2026
@pdelagrave pdelagrave merged commit a72ba76 into main Feb 25, 2026
1 check passed
@pdelagrave pdelagrave deleted the nodeoptions branch February 25, 2026 21:16
@github-project-automation github-project-automation Bot moved this from Ready to Review to Done in OpenRewrite Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants