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
2 changed files with 6 additions and 1 deletions

View File

@@ -1,11 +1,13 @@
# Rojo Changelog # Rojo Changelog
## Unreleased ## Unreleased
* Fixed `sourcemap` command outputting paths with OS-specific path separators ([#1085])
* Fixed nil -> nil properties showing up as failing to sync in plugin's patch visualizer ([#1081]) * Fixed nil -> nil properties showing up as failing to sync in plugin's patch visualizer ([#1081])
* Changed the background of the server's in-browser UI to be gray instead of white ([#1080]) * Changed the background of the server's in-browser UI to be gray instead of white ([#1080])
* Fixed `Auto Connect Playtest Server` no longer functioning due to Roblox change ([#1066]) * Fixed `Auto Connect Playtest Server` no longer functioning due to Roblox change ([#1066])
* Added an update indicator to the version header when a new version of the plugin is available. ([#1069]) * Added an update indicator to the version header when a new version of the plugin is available. ([#1069])
[#1085]: https://github.com/rojo-rbx/rojo/pull/1085
[#1081]: https://github.com/rojo-rbx/rojo/pull/1081 [#1081]: https://github.com/rojo-rbx/rojo/pull/1081
[#1080]: https://github.com/rojo-rbx/rojo/pull/1080 [#1080]: https://github.com/rojo-rbx/rojo/pull/1080
[#1049]: https://github.com/rojo-rbx/rojo/pull/1066 [#1049]: https://github.com/rojo-rbx/rojo/pull/1066

View File

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