Skip to content

Commit

Permalink
fix(rust/resolver): use selected resolver instead of the default one (#…
Browse files Browse the repository at this point in the history
…780)

<!-- Thank you for contributing! -->

### Description

<!-- Please insert your description here and provide especially info about the "what" this PR is solving -->
  • Loading branch information
hyf0 committed Apr 7, 2024
1 parent 9267113 commit 226df5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rolldown_resolver/src/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ impl<F: FileSystem + Default> Resolver<F> {

let is_path_like = specifier.starts_with('.') || specifier.starts_with('/');

let resolved = self.default_resolver.resolve(&self.cwd, joined_specifier.to_str().unwrap());
let resolved = selected_resolver.resolve(&self.cwd, joined_specifier.to_str().unwrap());
if resolved.is_ok() {
resolved
} else if !is_path_like {
Expand Down

0 comments on commit 226df5b

Please sign in to comment.