Closed paulirish closed 4 years ago
attributing the newline to the file amounts to +1
(or 2 for \r\n
) here: https://github.com/danvk/source-map-explorer/blob/master/src/explore.ts#L199
Side note: I also think its weird that a line-ending isn't attributed the file that had the "active" mapping. Perhaps it should be?
What do you mean by "active" mapping?
as of #146, SME calculates the byte total of line endings and reports them. but they're not currently shown in the treemap, whereas
no source
orunmapped
bytes are.This PR fixes that.
+@connorjclark
Side note: I also think its weird that a line-ending isn't attributed the file that had the "active" mapping. Perhaps it should be?