UNPKG

vite-plugin-react-server

Version:
18 lines 843 B
import type { ViteDevServer, Logger } from "vite"; export declare const CSS_EXT: RegExp; export type CollectedCss = { id: string; code: string; }; /** * Walks the Vite server environment's module graph from `pagePath` and * returns the raw CSS code of every CSS module reachable from it. * * Replaces the rsc-worker's Node ESM CSS loader for runner mode: the * runner bypasses Node's import resolver, so the loader never fires. * The main thread has visibility into the same module graph and can * collect CSS deterministically once `runner.import(pagePath)` has * caused Vite to transform the page and its deps. */ export declare function collectRunnerCss(server: ViteDevServer, pagePath: string, projectRoot: string, logger: Logger, verbose?: boolean): Promise<CollectedCss[]>; //# sourceMappingURL=collectRunnerCss.d.ts.map