Skip to content

Comments

docs: add migration guide for chunkSplit#7104

Merged
chenjiahan merged 5 commits intomainfrom
migrate_chunk_split_0201
Feb 1, 2026
Merged

docs: add migration guide for chunkSplit#7104
chenjiahan merged 5 commits intomainfrom
migrate_chunk_split_0201

Conversation

@chenjiahan
Copy link
Member

Summary

  • Added detailed migration guides, explaining how to convert performance.chunkSplit usage to the new splitChunks configuration
  • Removed the performance.chunkSplit documentation, as this option is now deprecated.

Checklist

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

Copilot AI review requested due to automatic review settings February 1, 2026 08:55
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 1, 2026

Deploying rsbuild with  Cloudflare Pages  Cloudflare Pages

Latest commit: a2245b2
Status: ✅  Deploy successful!
Preview URL: https://3b776457.rsbuild-v2.pages.dev
Branch Preview URL: https://migrate-chunk-split-0201.rsbuild-v2.pages.dev

View logs

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @chenjiahan, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request updates the project's documentation to reflect a significant change in its chunk splitting configuration. It formally deprecates the performance.chunkSplit option and introduces a new splitChunks configuration that aligns more closely with Rspack's optimization.splitChunks. The primary goal is to provide clear, detailed migration paths for users, ensuring they can smoothly transition their existing configurations to the new standard while maintaining accurate and up-to-date documentation.

Highlights

  • Migration Guides Added: Comprehensive migration guides have been added for transitioning from the deprecated performance.chunkSplit configuration to the new splitChunks option, available in both English and Chinese documentation.
  • Deprecated Documentation Removed: The documentation files for the performance.chunkSplit option have been removed, ensuring that only current and relevant configuration details are presented to users.
  • Documentation Redirect Implemented: A permanent redirect has been set up to forward requests from the old chunkSplit documentation URL to the new splitChunks configuration page, improving user experience and preventing broken links.
  • Internal Links and Navigation Updated: Existing documentation links and the plugin overview navigation have been updated to reflect the deprecation of performance.chunkSplit and the introduction of the new splitChunks option.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 438b099e1a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request removes the deprecated performance.chunkSplit documentation and adds a comprehensive migration guide to the v1-to-v2 upgrade document. The changes are well-structured and cover both English and Chinese documentation. I've provided a couple of suggestions to improve the accuracy and completeness of the new migration guide to ensure a smoother transition for all users.

Copy link
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 pull request adds migration documentation for the deprecated performance.chunkSplit configuration option and removes its dedicated documentation page. The performance.chunkSplit option is deprecated in Rsbuild 2.0 in favor of the new splitChunks configuration.

Changes:

  • Added comprehensive migration guides in both English and Chinese upgrade documentation, explaining how to convert each performance.chunkSplit strategy to the new splitChunks configuration
  • Removed the dedicated documentation pages for performance.chunkSplit (both English and Chinese versions)
  • Added a redirect from the old documentation URL to the new splitChunks configuration page
  • Updated references in code-splitting guides to remove the hyperlink to the deleted documentation page
  • Reordered navigation items to place splitChunks before environments in the base configuration group

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
website/rspress.config.ts Adds redirect from old /config/performance/chunk-split URL to new /config/split-chunks URL
website/theme/rsbuildPluginOverview.ts Reorders navigation items, moving splitChunks before environments
website/docs/en/guide/upgrade/v1-to-v2.mdx Adds migration guide section for performance.chunkSplit with examples for all strategies and forceSplitting
website/docs/zh/guide/upgrade/v1-to-v2.mdx Chinese version of the migration guide section
website/docs/en/guide/optimization/code-splitting.mdx Removes hyperlink from reference to performance.chunkSplit
website/docs/zh/guide/optimization/code-splitting.mdx Chinese version of the reference update
website/docs/en/config/performance/chunk-split.mdx Removes entire documentation page (194 lines deleted)
website/docs/zh/config/performance/chunk-split.mdx Removes Chinese version of documentation page (194 lines deleted)

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

Copilot AI review requested due to automatic review settings February 1, 2026 09:01
Copy link
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

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.


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

@chenjiahan chenjiahan merged commit 1cbb803 into main Feb 1, 2026
6 checks passed
@chenjiahan chenjiahan deleted the migrate_chunk_split_0201 branch February 1, 2026 11:51
@chenjiahan chenjiahan mentioned this pull request Feb 2, 2026
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.

1 participant