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§
- Resolved
Import - A resolved import with its target.
- Resolved
Module - Fully resolved module with all imports mapped to targets.
- Resolved
ReExport - A resolved re-export with its target.
Enums§
- Resolve
Result - Result of resolving an import specifier.
Functions§
- extract_
package_ name - Extract the npm package name from a specifier.
@scope/pkg/foo/bar->@scope/pkglodash/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.