rwsdk
Version:
Build fast, server-driven webapps on Cloudflare with SSR, RSC, and realtime
12 lines (11 loc) • 495 B
text/typescript
/**
* Finds __vite_ssr_import__ and __vite_ssr_dynamic_import__ specifiers in the code.
* @param id The file identifier for language detection.
* @param code The code to search for SSR imports.
* @param log Optional logger function for debug output.
* @returns Object with arrays of static and dynamic import specifiers.
*/
export declare function findSsrImportSpecifiers(id: string, code: string, log?: (...args: any[]) => void): {
imports: string[];
dynamicImports: string[];
};