vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
25 lines • 833 B
TypeScript
import type { OutputBundle, PluginContext } from "rollup";
interface BundleManifestEntry {
file: string;
name: string;
src?: string;
isEntry?: boolean;
imports?: string[];
dynamicImports?: string[];
css?: string[];
}
/**
* Get the bundle manifest from the plugin context. Will only work during production build
* @param pluginContext - The plugin context
* @param bundle - The bundle
* @param preserveModulesRoot - The preserve modules root
* @returns The bundle manifest
*/
export declare function getBundleManifest({ pluginContext, bundle, moduleBase, preserveModulesRoot, }: {
pluginContext: PluginContext;
bundle: OutputBundle;
moduleBase?: string;
preserveModulesRoot?: boolean;
}): Record<string, BundleManifestEntry>;
export {};
//# sourceMappingURL=getBundleManifest.d.ts.map