vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
10 lines • 617 B
TypeScript
import type { CreateRenderToPipeableStreamHandlerFn } from "./createRenderToPipeableStreamHandler.types.js";
/**
* Client version of createRenderToPipeableStreamHandler.
*
* Strategy: Use simple Node.js stream APIs to naturally handle RSC-to-HTML conversion.
* This follows the HTML worker pattern exactly - create a custom writable stream
* and pipe the React stream directly to it, then provide a proper stream for fileWriter.
*/
export declare const createRenderToPipeableStreamHandler: CreateRenderToPipeableStreamHandlerFn<"client">;
//# sourceMappingURL=createRenderToPipeableStreamHandler.client.d.ts.map