Skip to content

feat(plugin-rsc): add customClientEntry option to opt out of "index" entry convention#1068

Merged
hi-ogawa merged 3 commits intomainfrom
feat/custom-client-entry
Jan 20, 2026
Merged

feat(plugin-rsc): add customClientEntry option to opt out of "index" entry convention#1068
hi-ogawa merged 3 commits intomainfrom
feat/custom-client-entry

Conversation

@hi-ogawa
Copy link
Copy Markdown
Contributor

Summary

  • Add experimental customClientEntry option to allow frameworks to opt out of the default "index" client entry convention
  • When enabled, the plugin no longer requires an entry chunk named "index" and won't auto-merge client entry deps into client references
  • Bans loadBootstrapScriptContent usage with this option (throws clear error)

This is useful for frameworks like start-rsc that manually handle client entry setup and preloading.

Test plan

  • Verify build works with customClientEntry: true and non-index entry name
  • Verify error is thrown when using loadBootstrapScriptContent with customClientEntry: true

🤖 Generated with Claude Code

…" entry convention

This experimental flag allows frameworks to opt out of the default
client entry handling when they manually manage client entry setup
and preloading.

When enabled:
- No longer requires an entry chunk named "index"
- Does not automatically merge client entry deps into client references
- Bans usage of `loadBootstrapScriptContent` (throws clear error)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@hi-ogawa hi-ogawa added the trigger: preview Trigger pkg.pr.new label Jan 19, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jan 19, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@vitejs/plugin-react@1068
npm i https://pkg.pr.new/@vitejs/plugin-react-oxc@1068
npm i https://pkg.pr.new/@vitejs/plugin-rsc@1068
npm i https://pkg.pr.new/@vitejs/plugin-react-swc@1068

commit: a79b47c

@hi-ogawa hi-ogawa force-pushed the feat/custom-client-entry branch from 3102cc5 to 23467ec Compare January 19, 2026 09:36
hi-ogawa and others added 2 commits January 19, 2026 19:04
Build clientReferenceDeps first, then merge entry deps if needed.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@hi-ogawa hi-ogawa merged commit 8dc7e5f into main Jan 20, 2026
21 checks passed
@hi-ogawa hi-ogawa deleted the feat/custom-client-entry branch January 20, 2026 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

trigger: preview Trigger pkg.pr.new

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant