Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Correctly flatten index sourcemaps #74

Merged
merged 2 commits into from
Oct 10, 2023
Merged

fix: Correctly flatten index sourcemaps #74

merged 2 commits into from
Oct 10, 2023

Conversation

loewenheim
Copy link
Contributor

The fix turns out to be quite simple: When we look up a position in and index sourcemap, the section's column offset is only applied to its first line. Therefore we need to do the same thing when flattening.

@loewenheim loewenheim linked an issue Oct 9, 2023 that may be closed by this pull request
@loewenheim loewenheim merged commit c3ab912 into master Oct 10, 2023
4 checks passed
@loewenheim loewenheim deleted the fix/flatten branch October 10, 2023 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug in SourceMapIndex::flatten
2 participants