vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
19 lines • 722 B
TypeScript
import type { OutputBundle } from "rollup";
import type { ManifestChunk } from "vite";
import type { InputNormalizer } from "../types.js";
/**
* 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<SSR extends boolean>({ bundle, normalizer, }: {
bundle: OutputBundle;
normalizer: InputNormalizer;
}): SSR extends true ? Record<string, string[]> : {
[key: string]: ManifestChunk & {
source: string;
};
};
//# sourceMappingURL=getBundleManifest.d.ts.map