Skip to main content

resolve_with_files

Function resolve_with_files 

Source
pub fn resolve_with_files(
    entry_path: &str,
    files: &HashMap<String, String>,
    data: &Value,
) -> Result<ResolvedComponent, String>
Expand description

Resolve a .van entry file with all its component imports from an in-memory file map.

This is the main API for multi-file compilation (playground, WASM, tests). Files are keyed by virtual path (e.g. "index.van", "hello.van").