Skip to content

chore(create-rspress): Add React 19 dependencies to create-rspress template#2873

Merged
SoonIter merged 2 commits intomainfrom
copilot/add-react-dependencies
Dec 9, 2025
Merged

chore(create-rspress): Add React 19 dependencies to create-rspress template#2873
SoonIter merged 2 commits intomainfrom
copilot/add-react-dependencies

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 9, 2025

Summary

Adds React 19 series dependencies to the default template generated by create-rspress. Projects created with npx create-rspress now include:

  • react: ^19.2.1
  • react-dom: ^19.2.1
  • @types/react: ^19.2.7
  • @types/react-dom: ^19.2.3

All dependencies added as devDependencies with versions matching monorepo consistency requirements.

Related Issue

N/A

Checklist

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

为 create-rspress 的默认模板中,增加 react react-dom @types/react @types/react-dom 包为 devDependencies

用最新的 19 系列版本


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@netlify
Copy link
Copy Markdown

netlify bot commented Dec 9, 2025

Deploy Preview for rspress-v2 ready!

Name Link
🔨 Latest commit 5ee7624
🔍 Latest deploy log https://app.netlify.com/projects/rspress-v2/deploys/6937ef565b9ead000815c9b8
😎 Deploy Preview https://deploy-preview-2873--rspress-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Co-authored-by: SoonIter <79413249+SoonIter@users.noreply.github.com>
Copilot AI changed the title [WIP] Add React and related packages to devDependencies Add React 19 dependencies to create-rspress template Dec 9, 2025
Copilot AI requested a review from SoonIter December 9, 2025 09:47
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 9, 2025

Rsdoctor Bundle Diff Analysis

📁 web

Path: website/doc_build/web/rsdoctor-data.json

📌 Baseline Commit: 766dd75679 | PR: #2870

Metric Current Baseline Change
📊 Total Size 14.5 MB 14.5 MB 8.4 KB (0.1%)
📄 JavaScript 13.9 MB 13.9 MB 8.4 KB (0.1%)
🎨 CSS 114.0 KB 114.0 KB 0 B (0.0%)
🌐 HTML 0 B 0 B N/A
📁 Other Assets 502.1 KB 502.1 KB 0 B (0.0%)

📦 Download Diff Report: web Bundle Diff

Generated by Rsdoctor GitHub Action

@SoonIter SoonIter marked this pull request as ready for review December 9, 2025 12:01
Copilot AI review requested due to automatic review settings December 9, 2025 12:01
@SoonIter SoonIter changed the title Add React 19 dependencies to create-rspress template chore(create-rspress): Add React 19 dependencies to create-rspress template Dec 9, 2025
@SoonIter SoonIter requested a review from Timeless0911 December 9, 2025 12:02
@SoonIter SoonIter merged commit 1f28f3e into main Dec 9, 2025
20 of 22 checks passed
@SoonIter SoonIter deleted the copilot/add-react-dependencies branch December 9, 2025 12:04
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

This PR adds React 19 dependencies to the default template created by create-rspress, ensuring new projects start with modern React type definitions and development dependencies.

  • Adds React 19 series packages as devDependencies to the basic template
  • Maintains version consistency with the monorepo (matching versions used in @rspress/core and other packages)
  • Follows the pattern established by the rspress website project

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

5 participants