Normalize paths in sourcemap generation (#1085)

This commit is contained in:
Micah 2025-07-31 09:19:57 -07:00 • committed by GitHub
parent 7f68d9887b
commit 9598553e5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -28,7 +28,10 @@ struct SourcemapNode<'a> {
name: &'a str,
class_name: Ustr,
#[serde(skip_serializing_if = "Vec::is_empty")]
#[serde(
skip_serializing_if = "Vec::is_empty",
serialize_with = "crate::path_serializer::serialize_vec_absolute"
)]
file_paths: Vec<PathBuf>,
#[serde(skip_serializing_if = "Vec::is_empty")]