Modulesยง
- tests ๐
Constantsยง
Staticsยง
- FILE_
PATTERN - RESOLVER ๐
- Creates an oxc_resolver with the appropriate options for resolving import paths. Lazy static resolver instance - created once and reused for all resolution calls. This is thread-safe and avoids the overhead of creating a new resolver for each call.
Functionsยง
- file_
not_ ๐found_ error - get_
package_ ๐path_ by_ package_ json - possible_
aliased_ ๐paths - resolve_
file_ path - resolve_
from_ ๐package_ json - resolve_
path - try_
resolve_ ๐pnpm_ path - Tries to find the corresponding pnpm path for a resolved node_modules path.
pnpm stores packages in node_modules/.pnpm/
@ /node_modules/ This function checks if such a path exists and returns it if found. - try_
resolve_ ๐with_ extensions - Tries to resolve a path by checking various file extensions. Handles three cases: