Module resolver

Module resolver 

Source
Expand description

Module resolution for standalone analysis.

Implements Node.js-style module resolution algorithm without requiring the full bundler infrastructure.

Structs§

ModuleResolver
Module resolver for standalone analysis.

Constants§

EXTENSIONS
Supported file extensions for module resolution.

Functions§

is_external
Check if a specifier is explicitly marked as external.
resolve_local
Resolve a local file path (relative or absolute).
resolve_path_alias
Resolve a path alias (e.g., “@/components” → “./src/components”).
resolve_with_alias
Resolve a module specifier using path aliases.
resolve_with_extensions
Resolve a local file path with extension and index file fallbacks.