UNPKG

rwsdk

Version:

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

17 lines (16 loc) 717 B
/** * Temporary paths for the generated vendor barrels in development. * * In dev, `directiveModulesDevPlugin` generates these paths in a temp directory * (outside of node_modules) and provides barrel content to Vite's optimizer * in-memory. The lookup plugins read these paths so the lookup map imports the * same temp files the optimizer is configured to pre-bundle. */ let vendorClientBarrelPath; let vendorServerBarrelPath; export const setVendorBarrelPaths = ({ client, server, }) => { vendorClientBarrelPath = client; vendorServerBarrelPath = server; }; export const getVendorClientBarrelPath = () => vendorClientBarrelPath; export const getVendorServerBarrelPath = () => vendorServerBarrelPath;