Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants