feat(create-rslib): add opt-in react-compiler tool and templates for react#1635
Merged
Timeless0911 merged 15 commits intomainfrom May 9, 2026
Merged
feat(create-rslib): add opt-in react-compiler tool and templates for react#1635Timeless0911 merged 15 commits intomainfrom
Timeless0911 merged 15 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an opt-in React Compiler tool to create-rslib for React templates, along with documentation and test updates to cover the new option.
Changes:
- Add a new
react-compileroptional tool increate-rslibthat merges a React-Compiler-enabled template into React scaffolds. - Introduce new React Compiler template overlays for
react-jsandreact-ts(adds@rsbuild/plugin-babel+babel-plugin-react-compiler, and adjusts React peer dependency ranges). - Update docs (EN/ZH) and expand
create-rslibtest matrix/validation to include the new tool.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| website/docs/zh/guide/start/quick-start.mdx | Documents React Compiler as an optional tool and adds CLI example/listing. |
| website/docs/zh/guide/solution/react.mdx | Adds guidance for enabling React Compiler during scaffolding. |
| website/docs/en/guide/start/quick-start.mdx | Documents React Compiler as an optional tool and adds CLI example/listing. |
| website/docs/en/guide/solution/react.mdx | Adds guidance for enabling React Compiler during scaffolding. |
| packages/create-rslib/test/index.test.ts | Expands React template test cases to include react-compiler combinations. |
| packages/create-rslib/test/helper.ts | Validates generated config/deps/peerDeps behavior with and without react-compiler. |
| packages/create-rslib/template-react-compiler/react-ts/rslib.config.ts | New overlay config enabling React Compiler via Babel plugin for TS template. |
| packages/create-rslib/template-react-compiler/react-ts/package.json | New overlay deps/peerDeps for TS React Compiler template. |
| packages/create-rslib/template-react-compiler/react-js/rslib.config.mjs | New overlay config enabling React Compiler via Babel plugin for JS template. |
| packages/create-rslib/template-react-compiler/react-js/package.json | New overlay deps/peerDeps for JS React Compiler template. |
| packages/create-rslib/src/index.ts | Registers react-compiler as an opt-in tool for React templates and copies overlay files. |
Timeless0911
reviewed
May 8, 2026
Co-authored-by: Timeless0911 <50201324+Timeless0911@users.noreply.github.com>
Co-authored-by: Timeless0911 <50201324+Timeless0911@users.noreply.github.com>
Deploying rslib with
|
| Latest commit: |
0a5d9c7
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://18776f88.rslib.pages.dev |
| Branch Preview URL: | https://feat-react-compiler-template.rslib.pages.dev |
…to feat/react-compiler-template
…m quick start guide
Timeless0911
approved these changes
May 9, 2026
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
Add opt-in React Compiler tools for React template
Checklist