UNPKG

rwsdk

Version:

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

15 lines (14 loc) 340 B
let manifest; export const getManifest = async () => { if (manifest) { return manifest; } if (import.meta.env.VITE_IS_DEV_SERVER) { manifest = {}; } else { const { default: prodManifest } = await import("virtual:rwsdk:manifest.js"); manifest = prodManifest; } return manifest; };