UNPKG

vite-preload

Version:

Speed up your Vite application by preloading server rendered lazy modules and stylesheets as early as possible

14 lines (11 loc) 320 B
import React from 'react'; const Context = React.createContext((id) => { throw new Error('ChunkCollectorContext not setup'); }); function __collectModule(moduleId) { const c = React.useContext(Context); c(moduleId); return; } export { Context, __collectModule }; //# sourceMappingURL=__internal.js.map