Skip to content

feat(create-rslib): add opt-in react-compiler tool and templates for react#1635

Merged
Timeless0911 merged 15 commits intomainfrom
feat/react-compiler-template
May 9, 2026
Merged

feat(create-rslib): add opt-in react-compiler tool and templates for react#1635
Timeless0911 merged 15 commits intomainfrom
feat/react-compiler-template

Conversation

@elecmonkey
Copy link
Copy Markdown
Member

Summary

Add opt-in React Compiler tools for React template

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings May 8, 2026 10:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-compiler optional tool in create-rslib that merges a React-Compiler-enabled template into React scaffolds.
  • Introduce new React Compiler template overlays for react-js and react-ts (adds @rsbuild/plugin-babel + babel-plugin-react-compiler, and adjusts React peer dependency ranges).
  • Update docs (EN/ZH) and expand create-rslib test 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.

Comment thread packages/create-rslib/test/helper.ts Outdated
Comment thread website/docs/en/guide/solution/react.mdx Outdated
Comment thread website/docs/zh/guide/solution/react.mdx
Comment thread website/docs/en/guide/start/quick-start.mdx Outdated
Comment thread website/docs/zh/guide/start/quick-start.mdx Outdated
Comment thread packages/create-rslib/src/index.ts Outdated
Comment thread website/docs/en/guide/solution/react.mdx Outdated
Comment thread website/docs/en/guide/start/quick-start.mdx Outdated
Comment thread website/docs/en/guide/start/quick-start.mdx Outdated
Comment thread website/docs/en/guide/start/quick-start.mdx Outdated
elecmonkey and others added 2 commits May 8, 2026 19:32
Co-authored-by: Timeless0911 <50201324+Timeless0911@users.noreply.github.com>
Co-authored-by: Timeless0911 <50201324+Timeless0911@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 8, 2026

Deploying rslib with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0a5d9c7
Status: ✅  Deploy successful!
Preview URL: https://18776f88.rslib.pages.dev
Branch Preview URL: https://feat-react-compiler-template.rslib.pages.dev

View logs

@Timeless0911 Timeless0911 merged commit 48d3caa into main May 9, 2026
10 checks passed
@Timeless0911 Timeless0911 deleted the feat/react-compiler-template branch May 9, 2026 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants