Skip to content

docs(rsc): document stable client chunks#1320

Open
hugosmoreira wants to merge 1 commit into
vitejs:mainfrom
hugosmoreira:docs/rsc-manual-chunks
Open

docs(rsc): document stable client chunks#1320
hugosmoreira wants to merge 1 commit into
vitejs:mainfrom
hugosmoreira:docs/rsc-manual-chunks

Conversation

@hugosmoreira

Copy link
Copy Markdown

Description

Documents the stable client chunk configuration already exercised by the plugin-rsc basic example.

The new README section:

  • groups React, React DOM, and the RSC browser runtime into a stable lib-react chunk
  • separates Vite's preload helper into lib-vite
  • explains why the functional manualChunks form is needed for CommonJS proxy module IDs

Closes #865

Validation

  • pnpm -C packages/plugin-rsc build
  • pnpm -C packages/plugin-react build
  • pnpm -C packages/plugin-rsc tsc
  • oxfmt --check packages/plugin-rsc/README.md
  • executed the documented configuration with assertions for each chunking branch

@hugosmoreira
hugosmoreira marked this pull request as ready for review July 26, 2026 06:45
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.

Document manualChunks example

1 participant