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

#1778 standardised using starting index, to fix incorrectly mapped sourcemaps #1780

Merged
merged 1 commit into from
Jan 11, 2014

Conversation

brenmar
Copy link
Contributor

@brenmar brenmar commented Jan 6, 2014

Fixes #1778.

Appears that there is already convention to use the starting index for most of the nodes, just a couple had not implemented it correctly, or only half implemented it (ie. had index set but still used i). This fixes that to ensure consistency and produce correct sourcemaps.

It does break the sourcemap test because that test tests against a previously generated sourcemap which contains incorrect mappings, rookie testing error I'll leave that to the person that created the rookie test to fix.

Would suggest using http://sokra.github.io/source-map-visualization/ to test sourcemaps.

@lukeapage
Copy link
Member

Yes, I haven't had time to do proper tests so the current one only serves
to notify you if you change mappings.. then its upto you.. I can 'fix' the
test though.

lukeapage added a commit that referenced this pull request Jan 11, 2014
#1778 standardised using starting index, to fix incorrectly mapped sourcemaps
@lukeapage lukeapage merged commit 3755fb2 into less:master Jan 11, 2014
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.

Source maps incorrectly map selector tokens and other rules
2 participants