UNPKG

@respond-run/manifest

Version:

Minimal utility for loading Vite's manifest.json in Cloudflare Workers and other edge environments

18 lines (17 loc) 581 B
export interface ManifestEntry { file: string; css?: string[]; imports?: string[]; } export interface ClientEntry { scriptPath: string; stylePath?: string; } /** * Load and cache Vite manifest from a Cloudflare-compatible asset binding. */ export declare function getManifest(fetchAsset: (path: string) => Promise<Response>): Promise<Record<string, ManifestEntry> | null>; /** * Resolves the script/style paths for the main client entrypoint. */ export declare function getClientEntry(fetchAsset: (path: string) => Promise<Response>): Promise<ClientEntry>;