We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 172c71a commit bbc460eCopy full SHA for bbc460e
core/module_specifier.rs
@@ -124,7 +124,7 @@ pub fn resolve_url_or_path(
124
/// ModuleSpecifier. A relative path is considered relative to the passed
125
/// `current_dir`.
126
pub fn resolve_path(
127
- path_str: &str,
+ path_str: impl AsRef<Path>,
128
current_dir: &Path,
129
) -> Result<ModuleSpecifier, ModuleResolutionError> {
130
let path = current_dir.join(path_str);
0 commit comments