Overview of @vitejs/plugin-rsc
mainThe @vitejs/plugin-rsc package provides React Server Components (RSC) support for Vite. It is designed to be:
- Framework-agnostic: Implements low-level RSC bundler features and provides the
react-server-domAPI without framework-specific abstractions. - Runtime-agnostic: Built on the Vite environment API, making it compatible with various runtimes (e.g., Cloudflare Workers).
- HMR-enabled: Supports Hot Module Replacement for both client and server components.
- CSS-ready: Automatically handles CSS code-splitting for both client and server components, injecting them upon rendering.