UNPKG

vite-plugin-react-server

Version:
12 lines (11 loc) 318 B
export const bundles = { server: null, client: null, static: null, }; export const addBundle = (name) => (bundle) => { bundles[name] = bundle; }; export const addStaticBundle = addBundle("static"); export const addClientBundle = addBundle("client"); export const addServerBundle = addBundle("server");