Skip to main content

analyze_project

Function analyze_project 

Source
pub fn analyze_project(
    in_dir: &Path,
    js_files: &[String],
) -> Result<AnalysisResult, String>
Expand description

Analyze JS root files and their transitive dependencies, returning all data needed for transpilation.

js_files must be non-empty; the first entry is the primary root whose sanitized stem becomes the project name. All entries are treated as starting points for dependency discovery.