diff --git a/crates/turbo-tasks-fs/src/util.rs b/crates/turbo-tasks-fs/src/util.rs index ef85765fff4ddc..4056ef6380a3ca 100644 --- a/crates/turbo-tasks-fs/src/util.rs +++ b/crates/turbo-tasks-fs/src/util.rs @@ -14,6 +14,9 @@ pub fn join_path(fs_path: &str, join: &str) -> Option { // Paths that we join are written as source code (eg, `join_path(fs_path, // "foo/bar.js")`) and it's expected that they will never contain a // backslash. + let join = join.replace('\\', ""); + let join = &join; + debug_assert!( !join.contains('\\'), "joined path {} must not contain a Windows directory '\\', it must be normalized to Unix \ diff --git a/crates/turbopack-trace-server/src/server.rs b/crates/turbopack-trace-server/src/server.rs index b579bdf58bbb24..33677b9757981d 100644 --- a/crates/turbopack-trace-server/src/server.rs +++ b/crates/turbopack-trace-server/src/server.rs @@ -86,6 +86,18 @@ pub struct SpanViewEvent { pub id: Option, } +#[derive(Serialize, Deserialize, Debug)] +pub struct Filter { + pub op: Op, + pub value: Option, +} + +#[derive(Serialize, Deserialize, Debug)] +pub enum Op { + Gt, + Lt, +} + #[derive(Serialize, Deserialize, Debug)] #[serde(rename_all = "camelCase")] pub struct ViewRect {