vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
18 lines • 793 B
TypeScript
/**
* plugin.ts
*
* PURPOSE: Main Vite plugin for React Server Components (RSC) static site generation
*
* This module:
* 1. Orchestrates the entire static site generation process
* 2. Manages the lifecycle of the RSC rendering process
* 3. Handles file writing for both initial page loads and client-side navigation
* - Writes .html files for initial page loads (complete HTML document)
* - Writes .rsc files for client-side navigation (RSC content only)
* 4. Provides hooks for Vite to integrate with the build process
* 5. Manages worker threads for parallel rendering
* 6. Handles error reporting and metrics collection
*/
import type { VitePluginFn } from "../types.js";
export declare const reactStaticPlugin: VitePluginFn;
//# sourceMappingURL=plugin.server.d.ts.map