diff --git a/Cargo.toml b/Cargo.toml index d11081d5fcbee..8f5fe4b687d6e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -269,7 +269,7 @@ smallvec = { version = "1.13.1", features = [ "union", "const_new", ] } -sourcemap = "6.0.2" +sourcemap = "6.4.1" syn = "1.0.107" tempfile = "3.3.0" test-case = "3.0.0" diff --git a/crates/turbopack-core/src/source_map/mod.rs b/crates/turbopack-core/src/source_map/mod.rs index 4b95ca417f031..c58b8eb9bfa96 100644 --- a/crates/turbopack-core/src/source_map/mod.rs +++ b/crates/turbopack-core/src/source_map/mod.rs @@ -316,9 +316,6 @@ impl SourceMap { SourceMap::Decoded(map) => { let mut token = map .lookup_token(line as u32, column as u32) - // The sourcemap crate incorrectly returns a previous line's token when there's - // not a match on this line. - .filter(|t| t.get_dst_line() == line as u32) .map(Token::from) .unwrap_or_else(|| { Token::Synthetic(SyntheticToken {