Skip to main content

render_component_assets

Function render_component_assets 

Source
pub fn render_component_assets(
    protocol: &WebUIProtocol,
    entry: &str,
    roots: &[String],
    emit_metafile: bool,
) -> Result<ComponentAssetGraph, WebUIError>
Expand description

Render a static component asset graph.

Entry-reachable components remain external prerequisites. Each asset-owned component is emitted once, and roots statically import their full closure. The application bundler chooses final chunks, filenames, and delivery.

ยงErrors

Returns WebUIError when the entry/root graph is invalid, contains a route, lacks compiled template metadata, or produces colliding filenames.