source-map-explorer
source-map-explorer copied to clipboard
Facilitate diffing
You're usually visualizing a source map because you want to make the source smaller.
It would be nice if source-map-explorer facilitated this in some way, e.g. by letting you pass in a --before
JSON file. The output would be a list of changes.
I have been thinking of adding source-map-explorer as a check on GitHub, but without diff it would be pretty hard to be useful, unless I just show both the old & the new source map.
Is there some way you see this possible @nikolay-borzov ?
Maybe after 2.0 release. But we need more details about how a list of changes should look like.
Showing a tree map of only new dependencies (or dependencies that have grown in size) might be a good start.
What I was thinking was a merged view, with removed things as if they were still part of the bundle, but marked in red and size not counted in higher parts. In green the new files can be placed, their size would be counted
Adding this from #208 as a reference https://github.com/dylang/source-map-diff