UNPKG

vite-plugin-react-server

Version:
32 lines 1.23 kB
/** * plugin.client.ts * * PURPOSE: Client-side static plugin for React Server Components * * This module: * 1. Handles static site generation in the client environment * 2. Uses RSC worker for RSC rendering and main-thread for HTML rendering * 3. Generates both RSC and HTML files for static pages * 4. Integrates with Vite's build process * * Feature parity with main react-static plugin, but in reverse. Uses rsc-worker to render rsc, and main thread for html. * This is not the default behavior, but is supported for testing and custom app development purposes. * Additionally, this can make it easier to use the --app flag to build all the modules + static generation at once. */ import type { VitePluginFn } from "../types.js"; /** * plugin.client.ts * * PURPOSE: Client-side static plugin for React Server Components * * This module: * 1. Handles static site generation in the client environment * 2. Uses RSC worker for RSC rendering and main-thread for HTML rendering * 3. Generates both RSC and HTML files for static pages * 4. Integrates with Vite's build process * * @param options * @returns */ export declare const reactStaticPlugin: VitePluginFn; //# sourceMappingURL=plugin.client.d.ts.map