Skip to main content

build_with_source

Function build_with_source 

Source
pub fn build_with_source(file: &Path, source: &str) -> ModuleGraph
Expand description

Build a module graph using caller-owned source for one root file.

Imported modules still resolve from their normal filesystem or embedded stdlib locations. This keeps editor diagnostics aligned with unsaved root buffers without creating a second module resolver.