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 cac5ec5 commit b085f11Copy full SHA for b085f11
src/detector.rs
@@ -1,5 +1,4 @@
1
use std::io::{BufRead, BufReader, Read};
2
-use std::path::{Path, PathBuf};
3
use std::str;
4
5
use crate::decoder::{decode_data_url, strip_junk_header, StripHeaderReader};
@@ -46,7 +45,8 @@ impl SourceMapRef {
46
45
/// Resolves the reference against a local file path
47
///
48
/// This is similar to `resolve` but operates on file paths.
49
- pub fn resolve_path(&self, minified_path: &Path) -> Option<PathBuf> {
+ #[cfg(any(unix, windows, target_os = "redox"))]
+ pub fn resolve_path(&self, minified_path: &std::path::Path) -> Option<std::path::PathBuf> {
50
let url = self.get_url();
51
if url.starts_with("data:") {
52
return None;
0 commit comments