Skip to content

Commit

Permalink
fix: source map mistakenly ignored index 0
Browse files Browse the repository at this point in the history
close #2052
  • Loading branch information
johnsoncodehk committed Dec 16, 2022
1 parent cba2eba commit 198bc84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/source-map/src/index.ts
Expand Up @@ -125,7 +125,7 @@ export class SourceMapBase<Data = undefined> {
skip.add(mapping);

const mapped = this.matchOffset(startOffset, mapping[from], mapping[to]);
if (mapped) {
if (mapped !== undefined) {
yield [mapped, mapping] as const;
}
}
Expand Down

0 comments on commit 198bc84

Please sign in to comment.