Skip to content

Commit

Permalink
fix(common): Fix source index for inputSourceMap (#8800)
Browse files Browse the repository at this point in the history
**Related issue:**

 - Closes #8789
  • Loading branch information
kdy1 committed Apr 3, 2024
1 parent 34e12a2 commit 4f9ab81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/swc_common/src/source_map.rs
Expand Up @@ -1225,7 +1225,7 @@ impl SourceMap {
if let Some(orig) = orig {
for src in orig.sources() {
let id = builder.add_source(src);
src_id = id + 1;
src_id = id;

builder.set_source_contents(id, orig.get_source_contents(id));
}
Expand Down

0 comments on commit 4f9ab81

Please sign in to comment.