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_
single_ group - Analyze a single core JS file (and optional additional roots) and their transitive dependencies, merging everything into one group.
- 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.