Skip to content

Commit a9df5e1

Browse files
committed
Always return the source mapping URL
1 parent d6fa0d7 commit a9df5e1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

symbolic-debuginfo/src/sourcebundle.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -428,11 +428,7 @@ impl<'a> SourceFileDescriptor<'a> {
428428
fn discover_sourcemaps_location(contents: &str) -> Option<&str> {
429429
for line in contents.lines().rev() {
430430
if line.starts_with("//# sourceMappingURL=") || line.starts_with("//@ sourceMappingURL=") {
431-
let possible_sourcemap = line[21..].trim();
432-
if possible_sourcemap.starts_with("data:application/json") {
433-
return None;
434-
}
435-
return Some(possible_sourcemap);
431+
return Some(line[21..].trim());
436432
}
437433
}
438434
None

0 commit comments

Comments
 (0)