feat!: update minimum Node.js version to 18.12.0#5786
Merged
chenjiahan merged 2 commits intomainfrom Aug 7, 2025
Merged
Conversation
✅ Deploy Preview for rsbuild ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR updates the minimum Node.js version requirement from 16.10.0/18.0.0 to 18.12.0 across the Rsbuild project, marking a breaking change as Node.js 16 reached end-of-life in September 2023.
- Updates engines.node field in package.json files to require Node.js >= 18.12.0
- Standardizes Node.js version requirement across all packages in the monorepo
- Prepares codebase for dropping Node.js 16 support in upcoming Rspack and Rsbuild v1.5 releases
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| packages/create-rsbuild/package.json | Updates minimum Node.js version from 16.10.0 to 18.12.0 |
| packages/core/package.json | Updates minimum Node.js version from 16.10.0 to 18.12.0 |
| package.json | Updates minimum Node.js version from 18.0.0 to 18.12.0 for consistency |
This was referenced Aug 7, 2025
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Rspack and Rsbuild v1.5 will no longer support Node 16, as Node.js reached end-of-life on September 11th, 2023, and many npm packages in the ecosystem have also dropped support for Node 16.
This PR marks the first step toward this goal by updating the engines field in package.json to require Node.js >= 18.12.0.
Related Links
Checklist