This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
sourceMap option documentation is inaccurate #2394
Closed
nex3 opened this issue
May 24, 2018
· 2 comments
· Fixed by negarjf/music-app-test#4, ccnmtl/portfolio#755, user-interviews/ui-design-system#209, JimmyBenKlieve/jimmybenklieve.github.io#2 or FarmAI/erp_web#13
Closed
sourceMap option documentation is inaccurate #2394
nex3 opened this issue
May 24, 2018
· 2 comments
· Fixed by negarjf/music-app-test#4, ccnmtl/portfolio#755, user-interviews/ui-design-system#209, JimmyBenKlieve/jimmybenklieve.github.io#2 or FarmAI/erp_web#13
Comments
The Result object description is also inaccurate:
As seen on @nex3 example, when the source was not a file, the parh to the SCSS file is not data but stdin. EDIT: Actually, I'm wrong, stats Result object is correctly returning "data" as entry path. Still it is inconsistent with the value returned in the source map "sources" which is "stdin". |
saper
added a commit
to saper/node-sass
that referenced
this issue
Oct 17, 2019
render() and renderSync() should return "map" property in the results only if source map has been enabled.
Thanks for this - there was even a small bug. Fixed via #2754 |
xzyfer
added a commit
that referenced
this issue
Oct 24, 2019
Fix #2394: sourceMap option should have consistent behaviour
This was referenced Mar 27, 2020
This was referenced Apr 15, 2020
This was referenced Apr 26, 2020
This was referenced Mar 6, 2021
Closed
This was referenced Mar 13, 2021
Merged
# for free
to subscribe to this conversation on GitHub.
Already have an account?
#.
The documentation for the
sourceMap
option claims thatHowever, in practice, if you set
sourceMap
to a string and don't setoutFile
, you still get amap
buffer in the result. For example:prints
The text was updated successfully, but these errors were encountered: