UNPKG

rwsdk

Version:

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

17 lines (16 loc) 719 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>, addServerModule?: (environment: string, id: string) => void) => TransformResult | undefined; export type { TransformResult };