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
sourceMap option documentation is inaccurate #2394
sourceMap option documentation is inaccurate #2394
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". |
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 |
Fix #2394: sourceMap option should have consistent behaviour
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: