-
Notifications
You must be signed in to change notification settings - Fork 464
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
Duplicate source mapping #2122
Comments
I don't really agree that it is invalid for libsass to output multiple source mappings for the same token, as such a token could be passed through multiple functions. Furthermore the "duplicate" you see is another "feature" we've added in response to #1747 (if you mean the ones before The draft for SourceMap V3 unfortunately leaves a lot open in this regard ... |
Thanks for your response! I think this is the situation:
So I guess there are several issues here:
Feel free to close this issue if you like. |
Agree with your conclusions. Not much libsass can do for now. |
I followed this guide to set
sassc
up: https://github.com/sass/sassc/blob/master/docs/building/unix-instructions.mdCommits:
Steps to reproduce:
Click here for full output of
node test.js test.css.map
Here is the interesting part of the output:
That’s a duplicate mapping. This means that any program that consumes this source map and wants to go from line 3 column 2 doesn’t know if the answer is line 1 column 0 or line 3 column 2. Unfortunately, at least some tools choose the former, which ultimately results in the browser pointing to an unexpected location (
3:2 → 3:2
is what a user expects.)Real world trouble caused by this:
The text was updated successfully, but these errors were encountered: