Skip to main content

build_module_graph

Function build_module_graph 

Source
pub fn build_module_graph(entry_path: &Path) -> Result<ModuleGraph, ModuleError>
Expand description

Build a module graph starting from the entry file.

This function:

  1. Parses the entry file
  2. Extracts import declarations
  3. Recursively resolves and parses imported modules
  4. Builds the dependency graph

All internal state uses BTreeMap/BTreeSet for deterministic ordering.