Currently, if a previous source map's "sources" array contains relative URLs, those URLs are interpreted as relative to the current working directory rather than the location of the source map. This produces incorrect original file paths, which is particularly problematic in error messages. In conjunction with #1347, this makes it essentially impossible to correctly handle source map paths for CSS files outside the current working directory.
I think will be great to add tests for absolute sources too, sass can generate absoute sources, so merging them should be correct, maybe tests already exist, just want to say it
nex3 commentedApr 13, 2020
Currently, if a previous source map's
"sources"array contains relative URLs, those URLs are interpreted as relative to the current working directory rather than the location of the source map. This produces incorrect original file paths, which is particularly problematic in error messages. In conjunction with #1347, this makes it essentially impossible to correctly handle source map paths for CSS files outside the current working directory.Note that the file path is
/home/nweiz/goog/test.scss, while it should be/home/nweiz/goog/postcss/test.scss.The text was updated successfully, but these errors were encountered: