source-map-explorer icon indicating copy to clipboard operation
source-map-explorer copied to clipboard

Facilitate diffing

Open danvk opened this issue 9 years ago • 5 comments

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.

danvk avatar Oct 16 '15 21:10 danvk

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 ?

Haroenv avatar Apr 23 '19 13:04 Haroenv

Maybe after 2.0 release. But we need more details about how a list of changes should look like.

nikolay-borzov avatar Apr 23 '19 14:04 nikolay-borzov

Showing a tree map of only new dependencies (or dependencies that have grown in size) might be a good start.

danvk avatar Apr 23 '19 14:04 danvk

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

Haroenv avatar Apr 23 '19 14:04 Haroenv

Adding this from #208 as a reference https://github.com/dylang/source-map-diff

danvk avatar Mar 14 '23 16:03 danvk