vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
19 lines (18 loc) • 844 B
TypeScript
import type { VitePluginFn } from "../types.js";
/**
* Creates a plugin that ensures consistent hash generation across environments
* by using the original source file content as the basis for hash generation.
*/
/**
* Environment Configuration Plugin
*
* This plugin configures Vite Environment API environments for React Server Components.
* It's separate from the env plugin which handles process environment variables.
*
* Environment mapping:
* - client (Vite client = browser) → dist/client (React client components - real implementations)
* - ssr (Vite SSR = SSR-safe) → dist/static (SSR-compatible static files)
* - server (custom) → dist/server (React server components with registerClientReference)
*/
export declare const createEnvironmentPlugin: VitePluginFn;
//# sourceMappingURL=createEnvironmentPlugin.d.ts.map