Open
Description
Hi there,
I just recently tried to generate source maps via the embedded compiler and the source maps that are being generated are different than what you get from CLI dart-sass. The actual compiled css files are correct, the issue is just with the source maps.
With this embedded compile I'm getting something like:
{
"version":3,
"sourceRoot":"",
"sources": ["file:///Users/user/src/project/test/resources/_dependency.scss","file:///Users/user/src/project/test/resources/dependent.scss"],
"names":[],
"mappings":"AAAA,kBACE,cAGF,iBACE"
}
Whereas dart-sass CLI produces something like:
{
"version":3,
"sourceRoot":"",
"sources":["_dependency.scss","dependent.scss"],
"names":[],
"mappings":"AACA;EACI;;;ACEJ;EACI",
"file":"dependent.css"
}
Specifically, the output "file" is missing, but more importantly the paths are absolute, which will probably break. Does this seem right?
I based my usage on the tests in SassCompilerTest.java
, basically I just setGenerateSourceMaps
on the compiler, and that was it. Is there some other configuration that I'm missing, or some usage example I may have missed?
Thanks for this great library!
Metadata
Metadata
Assignees
Labels
No labels