danvk / source-map-explorer

Analyze and debug space usage through source maps
Apache License 2.0
3.82k stars 100 forks source link

Distinguish unmapped indentation from other unmapped content #193

Open stof opened 3 years ago

stof commented 3 years ago

Is your feature request related to a problem? Please describe. When generating sourcemaps for its expanded output, dart-sass is leaving all indentation unmapped. This results in a large amount of unmapped content, without being able to figure easily whether we have relevant unmapped content.

Describe the solution you'd like It would be nice to separate unmapped indentation (defined as whitespace content at the beginning of the line) from other unmapped content and report the percentages separately

nikolay-borzov commented 3 years ago

I think this issue should be fixed on dart-sass side. source-map-explorer can't say what unmapped content refers to.

unmappedBytes = totalBytes - mappedBytes - sourceMapCommentBytes - eolBytes;