Skip to content

Commit

Permalink
fix(sourcemap): update sourcemap, remove checker
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj committed Mar 23, 2024
1 parent 97950cd commit 05dad23
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 0 additions & 3 deletions crates/turbopack-core/src/source_map/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 05dad23

Please sign in to comment.