Skip to content

Revisit inclusion of the url crate #598

@Boshen

Description

@Boshen

oxc-resolver/src/lib.rs

Lines 370 to 381 in 9ec3337

if specifier.starts_with("file://") {
let unsupported_error = ResolveError::PathNotSupported(specifier.into());
let path = Url::parse(specifier)
.map_err(|_| unsupported_error.clone())?
.to_file_path()
.map_err(|()| unsupported_error)?;
let owned = path.to_string_lossy().into_owned();
specifier_owned = Some(owned);
specifier = specifier_owned.as_deref().unwrap();
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions