File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[package ]
22name = " oxc_napi_resolver"
33version = " 8.0.0"
4- publish = true
54authors.workspace = true
65categories.workspace = true
76edition.workspace = true
87homepage.workspace = true
98include.workspace = true
109keywords.workspace = true
1110license.workspace = true
11+ publish = true
1212readme.workspace = true
1313repository.workspace = true
1414rust-version.workspace = true
Original file line number Diff line number Diff line change @@ -463,10 +463,8 @@ impl<C: Cache> ResolverGeneric<C> {
463463 ) -> Result < C :: Cp , ResolveError > {
464464 debug_assert_eq ! ( specifier. chars( ) . next( ) , Some ( '#' ) ) ;
465465 // a. LOAD_PACKAGE_IMPORTS(X, dirname(Y))
466- if let Some ( path) = self . load_package_imports ( cached_path, specifier, ctx) ? {
467- return Ok ( path) ;
468- }
469- self . load_package_self_or_node_modules ( cached_path, specifier, ctx)
466+ self . load_package_imports ( cached_path, specifier, ctx) ?
467+ . map_or_else ( || Err ( ResolveError :: NotFound ( specifier. to_string ( ) ) ) , Ok )
470468 }
471469
472470 fn require_bare (
You can’t perform that action at this time.
0 commit comments