UNPKG

rwsdk

Version:

Build fast, server-driven webapps on Cloudflare with SSR, RSC, and realtime

17 lines (16 loc) 657 B
interface TransformResult { code: string; map?: any; } type ExportInfoCompat = { localFunctions: Set<string>; reExports: Array<{ localName: string; originalName: string; moduleSpecifier: string; }>; }; export declare const findExportedFunctions: (code: string, normalizedId?: string) => Set<string>; export declare const findExportInfo: (code: string, normalizedId?: string) => ExportInfoCompat; export declare const transformServerFunctions: (code: string, normalizedId: string, environment: "client" | "worker" | "ssr", serverFiles: Set<string>) => TransformResult | undefined; export type { TransformResult };