-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Docs] How to display the size difference relative to master #22
Comments
Hi! Right now, the diff from main branch is only shown when there's only 1 file (or only 1 file that failed), would it be interesting to see the sum of diffs (+-) from main branch? |
Hey, thanks for the quick response! Yeah I would definitely +1 for a total diff sum :) Another reason for this is that we don't want to necessarily block merging if the check fails, but it would still be nice to see the difference. Thanks for your consideration! |
Cool, I'll add it to the list 👍 |
Hi! I just added total diff from base branch to the title. Would love to see how that looks in your repo :) Released in bundlesize2@0.0.30 |
hey @siddharthkp! super impressed with how quickly you implemented this, and sorry to bother you again but we tried updating from 0.0.28 to 0.0.30, but still just seeing the same message as before: Is there any other change that needs to be made for this to work? Like a flag somewhere maybe? |
I have a hunch, this might have something to do with the file names. Can you show me the long report from CI? |
here's the full output with from CI with file names:
we're also using webpack chunking (as you can probably tell)– so that might be an issue? |
Oh yeah, that's the trouble. There are 2 types of files here:
|
Great package, overall it's working really well!
In your docs you have a screenshot of the GitHub Checks that includes the note:
0.2kb larger than master, careful!
I would also like to highlight the size difference relative to Master in my Check message, but I don't see how this is possible as there's nothing in the docs about it?
I can only figure out how to check if the files are under a certain threshold– currently the check just says
50 checks passed
because all 50 checked files are below their stated limit. This is good but not great– it would be much more useful to see how much is has increased rather than just a binary pass/fail. I see that this is possible, but I don't see how to do it.My
bundlesize.config.json
is basically just:Thank you!
(path names made generic because I don't think it adds anything)
The text was updated successfully, but these errors were encountered: