vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
13 lines • 683 B
TypeScript
/**
* Verify the installed React can drive React Server Components.
*
* As of 2.0 the plugin runs on **stable** React 19.2+ (the line where the
* RSC server APIs — `prerenderToNodeStream`, the `react-server` exports the
* transport binds to — graduated out of experimental). The vendored
* `react-server-dom-esm` transport ships inside `react-server-loader`, whose
* peer range pins the exact React it was built against; this runtime check is
* a clearer error than the internals mismatch you'd otherwise hit at render
* time if a too-old React slipped past the peer.
*/
export declare function checkReactVersion(): void;
//# sourceMappingURL=checkReactVersion.d.ts.map