UNPKG

rwsdk

Version:

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

7 lines (6 loc) 301 B
/** * Resolves a module ID consistently across client and server transformations. * For node modules, uses the /rwsdk:kind/relativePath format. * For regular files, uses the raw ID. */ export declare function resolveModuleId(id: string, kind: "client" | "server", projectRootDir: string): string;