Skip to main content

try_load_module_preloads

Function try_load_module_preloads 

Source
pub fn try_load_module_preloads<A: Embed>() -> Result<ModulePreloads, String>
Expand description

Each route’s modulepreload list from the embedded manifest.json, for RenderCtx::with_module_preloads Call it at start, beside try_load_manifest.

§Errors

A missing or malformed manifest, or a preload that names a file the manifest does not list among the build’s assets; refuse to start on it, as on a bad module.