rwsdk
Version:
Build fast, server-driven webapps on Cloudflare with SSR, RSC, and realtime
11 lines (10 loc) • 411 B
text/typescript
/**
* Finds callsites for __vite_ssr_import__ and __vite_ssr_dynamic_import__ with their ranges.
* The returned ranges can be used with MagicString to overwrite the entire call expression.
*/
export declare function findSsrImportCallSites(id: string, code: string, log?: (...args: any[]) => void): Array<{
start: number;
end: number;
specifier: string;
kind: "import" | "dynamic_import";
}>;