feat(react-server): migrate to @vitejs/plugin-rsc#1332
Draft
feat(react-server): migrate to @vitejs/plugin-rsc#1332
Conversation
Plan to migrate @hiogawa/react-server from @hiogawa/vite-rsc to @vitejs/plugin-rsc. This is an "all-in" migration where plugin-rsc provides the complete RSC bundler layer. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Replace @hiogawa/vite-rsc with @vitejs/plugin-rsc - Remove custom "use client" and "use server" transform plugins (now handled by @vitejs/plugin-rsc) - Update entry points to import from @vitejs/plugin-rsc/* - Remove client reference preloading (not supported in native RSC) TODO: wakujs/waku#1656 - Simplify PluginStateManager by removing unused reference maps - Remove manual setRequireModule initialization (@vitejs/plugin-rsc auto-initializes) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Mark status as "In Progress" - Document completed changes - Document known issues and remaining work: - Build orchestration mismatch - Route-based client reference tracking broken - Virtual module conflicts - E2E testing needed 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Removed: - rscParentPlugin (replaced with frameworkConfigPlugin) - buildOrchestrationPlugin - inject-async-local-storage - validateImportPlugin - serverDepsConfigPlugin - serverAssetsPluginServer - virtual:react-server-build (use import.meta.viteRsc.loadModule) - client-component/plugin.ts - server-action/plugin.tsx 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrate
@hiogawa/react-serverfrom@hiogawa/vite-rscto@vitejs/plugin-rsc.This is an "all-in" migration where
@vitejs/plugin-rscprovides the complete RSC bundler layer:"use client"/"use server"transformsloadModule,loadBootstrapScriptContent,loadCss)@hiogawa/react-serverbecomes a thin framework layer on top, keeping only:See
docs/migration-vite-rsc-to-vitejs-plugin-rsc.mdfor the full migration plan.Test plan
🤖 Generated with Claude Code