perf: github plugin that shows bundle size diff on every PR
transmissions11 opened this issue · 5 comments
transmissions11 commented
self explanatory from title — would be nice to have exact numbers/percentages on how much each PR and the deps they add contribute to bundle size to avoid bloating the app
transmissions11 commented
one option: https://github.com/sarthak-saxena/JSBundleSize (doesn't show diff tho)
transmissions11 commented
oo nice this looks great, @h0tw4t3r wanna PR it in?
h0tw4t3r commented
h0tw4t3r commented
@transmissions11, I've spent some time with implementing this, bundle-size-diff
is not our choice since it's for webpack, and here we use rollup
.
I've generated the bundle stats files with rollup-plugin-visualizer
, but the format is different and bundle-size-diff
can't eat it.
Which brings us back to the search of an action that builds a diff based on rollup-plugin-visualizer
plugin.