Skip to content

Commit 4f9ab81

Browse files
authoredApr 3, 2024··
fix(common): Fix source index for inputSourceMap (#8800)
**Related issue:** - Closes #8789
1 parent 34e12a2 commit 4f9ab81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎crates/swc_common/src/source_map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ impl SourceMap {
12251225
if let Some(orig) = orig {
12261226
for src in orig.sources() {
12271227
let id = builder.add_source(src);
1228-
src_id = id + 1;
1228+
src_id = id;
12291229

12301230
builder.set_source_contents(id, orig.get_source_contents(id));
12311231
}

0 commit comments

Comments
 (0)
Please sign in to comment.