Expand description
Dependency analyzer — scan all JS files, build import graph, and partition files into groups (one core file + its transitive deps).
A “core file” is a file that is NOT imported by any other file. Each core file becomes the root of a group. Non-core files can belong to multiple groups.
Structs§
- File
Group - A file group: one core file + all files transitively imported by it.
Functions§
- analyze_
groups - Analyze all JS files in
in_dirand return file groups. - sanitize_
module_ name - Convert a module name (from filename) to a valid Zig identifier suffix.
Non-ASCII characters are converted to Unicode codepoint format
_uXXXX. - strip_
imports_ extract_ exports - Strip
importandexportstatements from JS source, and collect all exported function/var/class names.