Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/oxc-project/oxc-resolver
/ functions
Functions
769 in github.com/oxc-project/oxc-resolver
⨍
Functions
769
◇
Types & classes
86
↓ 3 callers
Method
dts_resolve_in_node_modules_dir
( &self, extensions: Extensions, specifier: &str, nm_dir: &CachedPath,
src/dts_resolver.rs:524
↓ 3 callers
Method
dts_resolve_relative
( &self, extensions: Extensions, candidate: &CachedPath, ctx: &mut Ctx, )
src/dts_resolver.rs:194
↓ 3 callers
Function
get_value_by_path
Navigate `fields` along `path` (e.g. `["exports"]` or `["a", "b"]`), returning the value.
src/package_json/mod.rs:117
↓ 3 callers
Method
inside_node_modules
(&self)
src/cache/cached_path.rs:98
↓ 3 callers
Method
is_file_included_in_tsconfig
(&self, path: &Path)
src/tsconfig.rs:667
↓ 3 callers
Method
is_glob_matches
(&self, path: &Path, pattern: GlobPattern)
src/tsconfig.rs:698
↓ 3 callers
Method
key_matches
Whether this entry's key matches `specifier` (raw bytes). Matching on bytes lets a caller gate on a path's `OsStr` without paying for UTF-8 validation
src/alias.rs:124
↓ 3 callers
Method
load_alias
enhanced-resolve: AliasPlugin for [crate::ResolveOptions::alias] and [crate::ResolveOptions::fallback].
src/alias.rs:144
↓ 3 callers
Method
load_as_directory
( &self, cached_path: &CachedPath, tsconfig: Option<&TsConfig>, ctx: &mut Ctx,
src/lib.rs:757
↓ 3 callers
Method
load_package_files
(&mut self, package_root: &Path)
benches/resolver.rs:634
↓ 3 callers
Method
load_package_imports
LOAD_PACKAGE_IMPORTS(X, DIR)
src/lib.rs:705
↓ 3 callers
Method
load_package_self
( &self, cached_path: &CachedPath, specifier: &str, tsconfig: Option<&TsConfig
src/lib.rs:1192
↓ 3 callers
Method
load_package_self_or_node_modules
( &self, cached_path: &CachedPath, specifier: &str, tsconfig: Option<&TsConfig
src/lib.rs:649
↓ 3 callers
Method
load_tsconfig
( &self, root: bool, path: &Path, references: TsconfigReferences, ctx:
src/tsconfig_resolver.rs:195
↓ 3 callers
Method
main_fields
The "main" field defines the entry point of a package when imported by name via a node_modules lookup. Its value should be a path. When a package has
src/package_json/mod.rs:294
↓ 3 callers
Function
map_resolution_to_result
(result: Result<Resolution, ResolveError>)
napi/src/lib.rs:360
↓ 3 callers
Method
mask_contains
(&self, byte: u8)
src/alias.rs:25
↓ 3 callers
Function
metadata
()
src/file_system.rs:368
↓ 3 callers
Method
package_imports_exports_resolve
PACKAGE_IMPORTS_EXPORTS_RESOLVE(matchKey, matchObj, packageURL, isImports, conditions)
src/lib.rs:1618
↓ 3 callers
Method
package_target_resolve
( &self, package_url: &CachedPath, target_key: &str, target: &ImportsExportsEn
src/lib.rs:1707
↓ 3 callers
Function
prepare_symlinks
Prepares symlinks for the test. Specify a different `temp_path_segment` for each test to avoid conflicts when tests are executed concurrently. Returns
src/tests/symlink.rs:106
↓ 3 callers
Function
replace_bom_with_whitespace
Strip BOM in place by replacing with spaces (no reallocation) UTF-8 BOM is 3 bytes: 0xEF, 0xBB, 0xBF
src/lib.rs:2006
↓ 3 callers
Function
resolve
(resolver: &Resolver, path: &Path, request: &str)
napi/src/lib.rs:390
↓ 3 callers
Method
resolve_esm_match
RESOLVE_ESM_MATCH(MATCH)
src/lib.rs:1235
↓ 3 callers
Method
resolve_tracing
Wrap `resolve_impl` with `tracing` information
src/lib.rs:316
↓ 3 callers
Method
with_builtin_modules
(mut self, flag: bool)
src/options.rs:252
↓ 3 callers
Method
with_query_fragment
(&mut self, query: Option<&str>, fragment: Option<&str>)
src/context.rs:33
↓ 2 callers
Method
add_extension
(&self, target: &str, cache: &Cache)
src/cache/cached_path.rs:142
↓ 2 callers
Method
add_file_dependency
(&mut self, dep: &Path)
src/context.rs:47
↓ 2 callers
Method
add_missing_dependency
(&mut self, dep: &Path)
src/context.rs:53
↓ 2 callers
Function
alias_value
Interpret a `"browser"`/alias-field value: a string is the replacement, `false` means the request is ignored, anything else is "no mapping".
src/package_json/mod.rs:127
↓ 2 callers
Method
as_array
(&self)
src/package_json/mod.rs:419
↓ 2 callers
Method
as_bool
(&self)
src/package_json/simd.rs:51
↓ 2 callers
Function
assert_extends_symlink_resolves_to_canonical
(config_file: &Path)
src/tests/tsconfig_extends.rs:400
↓ 2 callers
Method
canonicalize_impl
Returns the canonical path, resolving all symbolic links. <https://github.com/parcel-bundler/parcel/blob/4d27ec8b8bd1792f536811fef86e74a31fa0e704/cra
src/cache/cache_impl.rs:363
↓ 2 callers
Function
check_if_empty
Check if JSON content is empty or contains only whitespace
src/package_json/mod.rs:26
↓ 2 callers
Function
data
()
benches/resolver.rs:13
↓ 2 callers
Function
decode_pathname
(pathname: &'a str, specifier: &str)
src/file_url.rs:69
↓ 2 callers
Method
dts_finalize
( &self, cached_path: &CachedPath, ctx: &mut Ctx, )
src/dts_resolver.rs:160
↓ 2 callers
Method
dts_resolve_via_version_paths
Resolve a specifier against typesVersions path mappings.
src/dts_resolver.rs:644
↓ 2 callers
Method
dts_try_extensions
TS: `tryAddingExtensions`
src/dts_resolver.rs:253
↓ 2 callers
Method
extend_tsconfig
( &self, directory: &CachedPath, tsconfig: &mut TsConfig, ctx: &mut TsconfigRe
src/tsconfig_resolver.rs:267
↓ 2 callers
Method
extends
Returns any paths to tsconfigs that should be extended by this tsconfig.
src/tsconfig.rs:179
↓ 2 callers
Function
file_system
()
src/tests/full_specified.rs:10
↓ 2 callers
Method
find_package_json_for_a_package
( &self, cached_path: &CachedPath, ctx: &mut Ctx, )
src/lib.rs:362
↓ 2 callers
Method
find_tsconfig_manual
( &self, tsconfig_options: &TsconfigOptions, )
src/tsconfig_resolver.rs:153
↓ 2 callers
Function
fixture
()
tests/api.rs:14
↓ 2 callers
Function
fixture
()
tests/misc.rs:11
↓ 2 callers
Method
followed_metadata
`stat`-equivalent metadata (symlinks followed) for `path`, cached in the `followed` slot. For a non-symlink the cached `lstat` already answers this,
src/cache/cache_impl.rs:137
↓ 2 callers
Method
followed_or_init
Return the cached `stat` (symlink-followed) view, or populate it from `f` and return that.
src/cache/cached_meta.rs:51
↓ 2 callers
Function
foo
()
fixtures/tsconfck/parse/solution/jsconfig/src/foo.js:1
↓ 2 callers
Method
get_extended_tsconfig_path
( &self, directory: &CachedPath, tsconfig: &TsConfig, specifier: &str, )
src/tsconfig_resolver.rs:433
↓ 2 callers
Method
get_module_directory
( &self, cached_path: &CachedPath, module_name: &str, ctx: &mut Ctx, )
src/lib.rs:1140
↓ 2 callers
Function
get_or_init
(slot: &AtomicU8, f: F)
src/cache/cached_meta.rs:59
↓ 2 callers
Function
has_encoded_separators
Check if pathname contains a percent-encoded forbidden character. Returns true if `%2F` (encoded `/`) is found, or on Windows also `%5C` (encoded `\`)
src/file_url.rs:52
↓ 2 callers
Method
is_file
(&self, path: &CachedPath, symlinks: bool, ctx: &mut Ctx)
src/cache/cache_impl.rs:106
↓ 2 callers
Method
is_file_extension_allowed_in_tsconfig
(&self, path: &Path)
src/tsconfig.rs:747
↓ 2 callers
Method
is_node_modules
(&self)
src/cache/cached_path.rs:94
↓ 2 callers
Method
link_or_init
Return the cached `lstat` view, or populate it from `f` (an `lstat`) and return that.
src/cache/cached_meta.rs:46
↓ 2 callers
Method
load_browser_field
enhanced-resolve: AliasFieldPlugin for [crate::ResolveOptions::alias_fields]
src/lib.rs:1255
↓ 2 callers
Method
load_browser_field_or_alias
( &self, cached_path: &CachedPath, tsconfig: Option<&TsConfig>, ctx: &mut Ctx,
src/lib.rs:906
↓ 2 callers
Method
load_directory_tree
(&mut self, root: &Path)
benches/resolver.rs:549
↓ 2 callers
Method
load_index
( &self, cached_path: &CachedPath, tsconfig: Option<&TsConfig>, ctx: &mut Ctx,
src/lib.rs:883
↓ 2 callers
Method
load_node_modules
( &self, cached_path: &CachedPath, specifier: &str, package_name: &str,
src/lib.rs:950
↓ 2 callers
Method
load_realpath
(&self, cached_path: &CachedPath)
src/lib.rs:842
↓ 2 callers
Method
manual_tsconfig
The manually configured tsconfig ([`TsconfigDiscovery::Manual`]); `Auto` discovery is deliberately skipped.
src/tsconfig_resolver.rs:146
↓ 2 callers
Method
matching
Entries whose first byte is compatible with `specifier`, in declaration order. This is only the fast-reject; callers still confirm with [`CompiledAlia
src/alias.rs:37
↓ 2 callers
Method
may_match
Whether any entry's first byte is compatible with `specifier`, without touching the entries. `0` in the mask means an always-evaluated entry exists.
src/alias.rs:31
↓ 2 callers
Method
module_directory
( &self, module_name: &str, symlinks: bool, cache: &Cache, ctx: &mut C
src/cache/cached_path.rs:102
↓ 2 callers
Method
parse
Parses the tsconfig from a JSON string. `path` is the requested path (used as identity for cache lookup and error reporting). `canonical_path` anchor
src/tsconfig.rs:93
↓ 2 callers
Function
pin_rayon_threads
Pin rayon's global pool to a fixed thread count so the `multi-thread` benches are deterministic. Rayon otherwise sizes the pool to the host core count
benches/resolver.rs:164
↓ 2 callers
Method
r#type
(&self)
src/package_json/mod.rs:228
↓ 2 callers
Method
require_core
PACKAGE_RESOLVE(packageSpecifier, parentURL) 3. If packageSpecifier is a Node.js builtin module name, then 1. Return the string "node:" concatenated w
src/lib.rs:505
↓ 2 callers
Method
require_without_parse
( &self, cached_path: &CachedPath, specifier: &str, tsconfig: Option<&TsConfig
src/lib.rs:440
↓ 2 callers
Method
resolve_base_url
(&self, specifier: &str)
src/tsconfig.rs:515
↓ 2 callers
Function
resolve_dts
(resolver: &Resolver, file: &Path, request: &str)
napi/src/lib.rs:398
↓ 2 callers
Function
resolve_file
(resolver: &Resolver, path: &Path, request: &str)
napi/src/lib.rs:394
↓ 2 callers
Function
resolve_options
()
benches/resolver.rs:107
↓ 2 callers
Method
resolver
(&self, root: &Path)
src/tests/tsconfig_paths.rs:397
↓ 2 callers
Method
set_should_build
Set whether `build()` should normalize paths.
src/tsconfig.rs:155
↓ 2 callers
Function
to_forward_slashes
Normalize Windows `\` to `/` for glob matching, without allocating when there's nothing to replace.
src/tsconfig.rs:623
↓ 2 callers
Method
tsconfig_extends_resolver
Lookup configuration shared by tsconfig `extends` targets that resolve through `node_modules`: bare package specifiers (via the package `exports` fiel
src/tsconfig_resolver.rs:413
↓ 2 callers
Function
tsconfig_resolve_impl
<https://github.com/parcel-bundler/parcel/blob/b6224fd519f95e68d8b93ba90376fd94c8b76e69/packages/utils/node-resolver-rs/src/lib.rs#L2303>
src/tests/tsconfig_paths.rs:11
↓ 2 callers
Method
with_root
(mut self, root: P)
src/options.rs:269
↓ 1 callers
Method
add_name_and_extension
(&self, name: &str, ext: &str, cache: &Cache)
src/cache/cached_path.rs:152
↓ 1 callers
Method
any_key_matches
Whether any entry's key matches `specifier` (raw bytes), gated by the first-byte mask. This runs for every file candidate when `alias` is configured,
src/alias.rs:50
↓ 1 callers
Method
as_str
(&self)
src/package_json/serde.rs:25
↓ 1 callers
Method
browser_fields
( &'a self, alias_fields: &'a [Vec<String>], )
src/package_json/mod.rs:339
↓ 1 callers
Method
cached_node_modules
( &self, symlinks: bool, cache: &Cache, ctx: &mut Ctx, )
src/cache/cached_path.rs:113
↓ 1 callers
Method
canonicalize
(path: &Path)
src/file_system.rs:254
↓ 1 callers
Method
canonicalize_with_visited
Internal helper for canonicalization with circular symlink detection.
src/cache/cache_impl.rs:379
↓ 1 callers
Method
claims_ownership_of
Whether this tsconfig (directly or via a referenced sub-project) claims ownership of `path`. Used by tsconfig auto-discovery to decide whether to keep
src/tsconfig.rs:647
↓ 1 callers
Function
cleanup_symlinks
(temp_path: &Path)
src/tests/symlink.rs:92
↓ 1 callers
Method
clear_cache
Clear the underlying cache. Warning: The caller must ensure that there're no ongoing resolution operations when calling this method. Otherwise, it ma
src/lib.rs:219
↓ 1 callers
Method
create_symlink_fixtures
(&mut self, cwd: &Path)
benches/resolver.rs:672
↓ 1 callers
Function
create_symlinks
()
benches/resolver.rs:84
↓ 1 callers
Function
create_symlinks
(dirname: &Path, temp_path: &Path)
src/tests/symlink.rs:53
↓ 1 callers
Function
decode
Decode a slot known to be [`INITIALIZED`].
src/cache/cached_meta.rs:85
↓ 1 callers
Method
difference
(self, other: Self)
src/dts_resolver.rs:53
↓ 1 callers
Method
dts_resolve_esm_match
(&self, cached_path: &CachedPath, ctx: &mut Ctx)
src/dts_resolver.rs:592
← previous
next →
101–200 of 769, ranked by callers