Skip to content

Comments

docs: update split chunks related documentation#7085

Merged
chenjiahan merged 2 commits intomainfrom
split_chunks_doc_0130
Jan 30, 2026
Merged

docs: update split chunks related documentation#7085
chenjiahan merged 2 commits intomainfrom
split_chunks_doc_0130

Conversation

@chenjiahan
Copy link
Member

Summary

  • Updated code examples and documentation references from performance.chunkSplit to the new splitChunks option
  • Updated plugin documentation for React and Vue to describe split chunk behavior using the new default preset
  • Removed outdated links to the performance.chunkSplit configuration

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings January 30, 2026 03:33
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@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 focuses on updating the project's documentation to reflect recent changes in how chunk splitting is configured. It ensures that all references and code examples correctly use the splitChunks option, replacing the older performance.chunkSplit. The updates also clarify how specific plugins, like those for React and Vue, interact with the new default chunk splitting presets, providing a more consistent and accurate guide for users.

Highlights

  • Configuration Update: Migrated documentation and code examples from the deprecated performance.chunkSplit option to the new splitChunks configuration.
  • Plugin Documentation Clarity: Enhanced the React and Vue plugin documentation to accurately describe their chunk splitting behavior using the new default preset.
  • Outdated Link Removal: Eliminated references and links to the performance.chunkSplit configuration that are no longer relevant.
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
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 successfully updates the documentation to replace the deprecated performance.chunkSplit with the new splitChunks option. The changes are consistently applied across both English and Chinese documentation, including code examples and reference links. I've identified one minor issue in the Chinese documentation where a code comment was inadvertently changed to English. Besides this, the updates are accurate and well-executed.

@cloudflare-workers-and-pages
Copy link

Deploying rsbuild with  Cloudflare Pages  Cloudflare Pages

Latest commit: b87a1eb
Status: ✅  Deploy successful!
Preview URL: https://575c971a.rsbuild-v2.pages.dev
Branch Preview URL: https://split-chunks-doc-0130.rsbuild-v2.pages.dev

View logs

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

Updates Rsbuild documentation to reflect the migration from legacy performance.chunkSplit to the new top-level splitChunks option and its default preset behavior.

Changes:

  • Updated React/Vue plugin docs to describe split chunk behavior in terms of the splitChunks default preset.
  • Updated CSS-in-JS (vanilla-extract) config examples to use splitChunks instead of performance.chunkSplit.override.
  • Removed performance.chunkSplit links from the “Features” pages.

Reviewed changes

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

Show a summary per file
File Description
website/docs/zh/plugins/list/plugin-vue.mdx Updates Vue plugin splitChunks description to reference the default splitChunks preset.
website/docs/zh/plugins/list/plugin-react.mdx Updates React plugin splitChunks description to reference the default splitChunks preset.
website/docs/zh/guide/styling/css-in-js.mdx Updates vanilla-extract example config to use top-level splitChunks.
website/docs/zh/guide/start/features.mdx Removes legacy performance.chunkSplit link from the features table.
website/docs/en/plugins/list/plugin-vue.mdx Updates Vue plugin splitChunks description to reference the default splitChunks preset.
website/docs/en/plugins/list/plugin-react.mdx Updates React plugin splitChunks description to reference the default splitChunks preset.
website/docs/en/guide/styling/css-in-js.mdx Updates vanilla-extract example config to use top-level splitChunks.
website/docs/en/guide/start/features.mdx Removes legacy performance.chunkSplit link from the features table.

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

@chenjiahan chenjiahan merged commit ff6dae6 into main Jan 30, 2026
5 checks passed
@chenjiahan chenjiahan deleted the split_chunks_doc_0130 branch January 30, 2026 03: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.

1 participant