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

[BUGFIX] Add fix for source-maps (Fix-Up PR #591) #619

Merged
merged 1 commit into from
Nov 4, 2014

Conversation

mgreter
Copy link
Contributor

@mgreter mgreter commented Nov 4, 2014

This fixes some bugs which I unfortunately just discovered now (#591)!

  • Remove line-breaks in Base64 encoded string
  • Actually embed the source-map json in data-url
  • Include original source in sources array

IMO the last one will probably cause some test fails for node sass! /cc @am11, @andrew
The sources array should contain the initial source too, as there is no other way to get it otherwise.
IMO I've just added a fix for that, so node sass tests pass. After some re-thinking I came to the conclusion that it has to be the way as this PR implements it!

Best regards

- Remove line-breaks in Base64 encoded string
- Actually embed the source-map json in data-url
- Include original source in sources array
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) when pulling c33353d on bugfix/source-map-sources into 18b0d9b on master.

@am11
Copy link
Contributor

am11 commented Nov 4, 2014

It makes perfect sense. Actually other trans-compilers (less.js for instance) also add the actual source-file-path in the sources array.

mgreter added a commit that referenced this pull request Nov 4, 2014
[BUGFIX] Add fix for source-maps (Fix-Up PR #591)
@mgreter mgreter merged commit 5375056 into master Nov 4, 2014
@am11
Copy link
Contributor

am11 commented Nov 5, 2014

@mgreter, just tested locally, and it passes all the node-sass tests. 😄

@mgreter mgreter deleted the bugfix/source-map-sources branch January 28, 2015 08:59
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.

3 participants