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
↓ 179 callers
Method
resolve
Resolve `specifier` at an absolute path to a `directory`. A specifier is the string passed to require or import, i.e. `require("specifier")` or `impo
src/lib.rs:243
↓ 133 callers
Method
full_path
(&self)
src/resolution.rs:94
↓ 119 callers
Function
fixture_root
()
src/tests/mod.rs:43
↓ 111 callers
Method
push
(&self, target: &str, cache: &Cache)
src/cache/cached_path.rs:133
↓ 81 callers
Function
fixture
()
src/tests/mod.rs:56
↓ 58 callers
Method
iter
(&self)
src/package_json/mod.rs:443
↓ 54 callers
Method
len
(&self)
src/package_json/mod.rs:439
↓ 54 callers
Method
path
(&self)
src/tsconfig.rs:163
↓ 52 callers
Method
resolve_file
Resolve `specifier` for an absolute path to a file. NOTE: [TsconfigDiscovery::Auto] only work for this API. # Errors See [ResolveError] Returns an
src/lib.rs:262
↓ 51 callers
Method
to_path_buf
(&self)
src/cache/cached_path.rs:80
↓ 51 callers
Method
value
(&self, path: &Path)
src/cache/cache_impl.rs:49
↓ 42 callers
Method
is_empty
(&self)
src/package_json/mod.rs:434
↓ 39 callers
Method
resolve_tsconfig
Resolve `tsconfig`. The path can be: Path to a file with `.json` extension. Path to a file without `.json` extension, `.json` will be appended to fi
src/tsconfig_resolver.rs:185
↓ 37 callers
Method
contains
(self, other: Self)
src/dts_resolver.rs:37
↓ 35 callers
Method
parent
(&self, cache: &Cache)
src/cache/cached_path.rs:84
↓ 33 callers
Method
resolve_dts
Resolve a module specifier for TypeScript declaration files. Matches `ts.resolveModuleName` with `moduleResolution: "bundler"`. `containing_file` is
src/dts_resolver.rs:81
↓ 31 callers
Function
resolver
()
src/tests/dts_resolver.rs:11
↓ 31 callers
Function
test
()
fixtures/tsconfck/parse/solution/simple/tests/foo.ts:4
↓ 29 callers
Function
containing_file
()
src/tests/dts_resolver.rs:7
↓ 28 callers
Method
normalize_with
(&self, subpath: P, cache: &Cache)
src/cache/cached_path.rs:182
↓ 28 callers
Method
sync
(&self, directory: String, request: String)
napi/src/lib.rs:191
↓ 24 callers
Method
as_str
(&self)
src/package_json/simd.rs:44
↓ 18 callers
Method
dts_try_file
(&self, base: &CachedPath, ext: &str, ctx: &mut Ctx)
src/dts_resolver.rs:361
↓ 18 callers
Method
get
(&self, key: &str)
src/package_json/mod.rs:452
↓ 17 callers
Method
field
(&self, key: &str)
src/package_json/mod.rs:201
↓ 15 callers
Method
is_dir
(self)
src/file_system.rs:102
↓ 14 callers
Method
find_tsconfig
Finds the `tsconfig` to which this `path` belongs. If the `path` is inside `node_modules`, this function always returns `None`. Algorithm: 1. Searc
src/tsconfig_resolver.rs:52
↓ 14 callers
Method
path
(&self)
src/cache/cached_path.rs:76
↓ 12 callers
Method
canonicalize
(&self, path: &Path)
src/tests/memory_fs.rs:90
↓ 12 callers
Method
is_symlink
(self)
src/file_system.rs:107
↓ 12 callers
Function
manual_resolver
(config_file: std::path::PathBuf, extensions: Vec<String>)
src/tests/tsconfig_lookup.rs:8
↓ 12 callers
Function
symlink
( original: P, link: Q, file_type: FileType, )
src/tests/symlink.rs:20
↓ 10 callers
Method
add_parent_directories
(&mut self, path: &Path)
benches/resolver.rs:525
↓ 10 callers
Method
clone_with_options
(&self, options: ResolveOptions)
src/lib.rs:189
↓ 10 callers
Method
union
(self, other: Self)
src/dts_resolver.rs:49
↓ 9 callers
Method
directory
(&self)
src/tsconfig.rs:173
↓ 9 callers
Method
is_dir
[`Cache::is_dir`] using this resolver's [`ResolveOptions::symlinks`] policy.
src/lib.rs:411
↓ 9 callers
Method
is_empty
(self)
src/dts_resolver.rs:45
↓ 9 callers
Method
resolve_with_context
Resolve `specifier` at absolute `path` with [ResolveContext] # Errors See [ResolveError]
src/lib.rs:296
↓ 9 callers
Function
symlink_metadata
Optimized version of [std::fs::symlink_metadata] for Windows. [std::fs::symlink_metadata] implementation uses `GetFileInformationByHandle` on Windows
src/windows/metadata.rs:18
↓ 9 callers
Method
with_fully_specified
(&mut self, yes: bool)
src/context.rs:29
↓ 8 callers
Method
as_object
`Self::Object` would be ambiguous with the `BorrowedValue::Object` variant, so name the concrete object type.
src/package_json/simd.rs:67
↓ 8 callers
Function
compile_alias
(aliases: &Alias)
src/alias.rs:85
↓ 8 callers
Function
dir
()
tests/resolve_package.rs:7
↓ 8 callers
Method
is_file
(self)
src/file_system.rs:97
↓ 8 callers
Method
package_json
(&self)
src/resolution.rs:88
↓ 7 callers
Method
clear
(&self)
src/cache/cache_impl.rs:36
↓ 7 callers
Function
clone
()
tests/api.rs:24
↓ 7 callers
Method
dts_resolve_as_file
TS: `loadModuleFromFile`
src/dts_resolver.rs:207
↓ 7 callers
Method
load_as_file_or_directory
( &self, cached_path: &CachedPath, specifier: &str, tsconfig: Option<&TsConfig
src/lib.rs:819
↓ 6 callers
Method
add_file
(&mut self, path: &Path, content: &str)
src/tests/memory_fs.rs:28
↓ 6 callers
Method
find_package_json
Find package.json of a path by traversing parent directories. # Errors [ResolveError::Json]
src/cache/cache_impl.rs:178
↓ 6 callers
Method
get_package_json
Get package.json of a path of `path`. # Errors [ResolveError::Json]
src/cache/cache_impl.rs:157
↓ 6 callers
Method
normalize
https://github.com/parcel-bundler/parcel/blob/e0b99c2a42e9109a9ecbd6f537844a1b33e7faf5/packages/utils/node-resolver-rs/src/path.rs#L7
src/path.rs:38
↓ 6 callers
Function
oxc_resolver_memory
()
benches/resolver.rs:149
↓ 6 callers
Method
package_exports_resolve
PACKAGE_EXPORTS_RESOLVE(packageURL, subpath, exports, conditions)
src/lib.rs:1467
↓ 6 callers
Method
resolve_path_alias
(&self, specifier: &str)
src/tsconfig.rs:491
↓ 5 callers
Method
as_map
(&self)
src/package_json/mod.rs:424
↓ 5 callers
Function
createTest
(exportsFields)
napi/tests/options.test.mjs:34
↓ 5 callers
Function
dts_fixture
()
src/tests/dts_resolver.rs:3
↓ 5 callers
Method
exports_fields
The "exports" field allows defining the entry points of a package when imported by name loaded either via a node_modules lookup or a self-reference to
src/package_json/mod.rs:310
↓ 5 callers
Method
fs
(&self)
src/cache/cache_impl.rs:44
↓ 5 callers
Method
get_tsconfig
( &self, root: bool, path: &Path, callback: F, // callback for modifying tscon
src/cache/cache_impl.rs:250
↓ 5 callers
Method
into_path_buf
(self)
src/resolution.rs:70
↓ 5 callers
Function
isMusl
()
napi/index.js:10
↓ 5 callers
Method
is_dir
(&self, path: &CachedPath, symlinks: bool, ctx: &mut Ctx)
src/cache/cache_impl.rs:116
↓ 5 callers
Method
kind
(&self)
src/package_json/mod.rs:409
↓ 5 callers
Method
path
(&self)
src/package_json/mod.rs:175
↓ 5 callers
Method
require
require(X) from module at path Y X: specifier Y: path <https://nodejs.org/api/modules.html#all-together>
src/lib.rs:421
↓ 5 callers
Method
resolve
(&mut self, _: napi::Env, result: Self::Output)
napi/src/lib.rs:101
↓ 5 callers
Method
root
(&self)
src/package_json/simd.rs:101
↓ 4 callers
Method
adjust_path
(&self, path: PathBuf)
src/tsconfig.rs:459
↓ 4 callers
Method
as_slice
(&self)
src/package_json/simd.rs:58
↓ 4 callers
Method
check_restrictions
(&self, path: &Path)
src/lib.rs:855
↓ 4 callers
Function
dir
()
tests/misc.rs:7
↓ 4 callers
Method
dts_resolve_as_directory
TS: `loadNodeModuleFromDirectoryWorker`
src/dts_resolver.rs:388
↓ 4 callers
Method
finish
(&self)
src/cache/hasher.rs:17
↓ 4 callers
Function
get_dos_device_path
(path: P)
src/tests/windows.rs:39
↓ 4 callers
Method
is_file
[`Cache::is_file`] using this resolver's [`ResolveOptions::symlinks`] policy.
src/lib.rs:406
↓ 4 callers
Method
keys
(&self)
src/package_json/mod.rs:456
↓ 4 callers
Method
link_metadata
`lstat` view of this path (the link itself), cached. Used both to answer `is_file`/`is_dir` for non-symlinks and by canonicalization to decide whethe
src/cache/cached_path.rs:233
↓ 4 callers
Method
load_alias_or_file
( &self, cached_path: &CachedPath, tsconfig: Option<&TsConfig>, ctx: &mut Ctx,
src/lib.rs:935
↓ 4 callers
Method
load_as_file
( &self, cached_path: &CachedPath, tsconfig: Option<&TsConfig>, ctx: &mut Ctx,
src/lib.rs:727
↓ 4 callers
Method
metadata
(&self, path: &Path)
src/tests/memory_fs.rs:71
↓ 4 callers
Method
name
(&self)
src/package_json/mod.rs:212
↓ 4 callers
Function
normalizePath
(p)
napi/tests/utils.mjs:1
↓ 4 callers
Function
oxc_resolver_real
()
benches/resolver.rs:155
↓ 4 callers
Function
push_normalized_component
(ret: &mut PathBuf, component: Component<'_>)
src/path.rs:126
↓ 4 callers
Method
read
(&self, path: &Path)
src/tests/memory_fs.rs:55
↓ 4 callers
Method
require_relative
3. If X is '.' or begins with './' or '/' or '../'
src/lib.rs:556
↓ 4 callers
Function
resolve
(specifier: &str)
tests/api.rs:18
↓ 4 callers
Method
sanitize
(mut self)
src/options.rs:424
↓ 4 callers
Function
strip_windows_prefix
When applicable, converts a [DOS device path](https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats#dos-device-paths) to a normal pat
src/windows/mod.rs:14
↓ 4 callers
Function
walk
(dir: &PathBuf)
src/tests/tsconfck.rs:7
↓ 4 callers
Method
with_extension
(mut self, extension: S)
src/options.rs:286
↓ 3 callers
Method
as_string
(&self)
src/package_json/mod.rs:414
↓ 3 callers
Method
build
(mut self)
src/tsconfig.rs:379
↓ 3 callers
Method
canonicalize
(&self, path: &CachedPath)
src/cache/cache_impl.rs:94
↓ 3 callers
Function
check_slash
(path: &Path)
src/tests/alias.rs:155
↓ 3 callers
Function
dir
()
tests/api.rs:10
next →
1–100 of 769, ranked by callers