Skip to main content

Module resolve

Module resolve 

Source
Expand description

Import specifier resolution using oxc_resolver.

Resolves all import specifiers across all modules in parallel, mapping each to an internal file, npm package, or unresolvable target. Includes support for tsconfig path aliases, pnpm virtual store paths, React Native platform extensions, and dynamic import pattern matching via glob.

Structs§

ResolvedImport
A resolved import with its target.
ResolvedModule
Fully resolved module with all imports mapped to targets.
ResolvedReExport
A resolved re-export with its target.

Enums§

ResolveResult
Result of resolving an import specifier.

Functions§

extract_package_name
Extract the npm package name from a specifier. @scope/pkg/foo/bar -> @scope/pkg lodash/merge -> lodash
is_path_alias
Check if a bare specifier looks like a path alias rather than an npm package.
resolve_all_imports
Resolve all imports across all modules in parallel.