You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reasoning is this - sometimes I could delete a bunch of code or maybe some dependency and my bundle would become much smaller. The bundle-size test would pass easily. Then, later on, I do some stupid mistake which increases my bundle size a lot but I still won't catch it by the bundle-size test because the size is still lower than the initial "limit" that I set.
If we have a "minimum" option then I would lower both it and the "limit" after I remove the dependency initially and then the second time I would catch the mistake I do.
Not sure if I make sense but this is something that I think is possible and would be nice to have.
The text was updated successfully, but these errors were encountered:
@simonihmig - I read that issue, yes, however there are 2 advantages of what I suggest in this issue:
It should be trivial to implement - just a few lines of code more I guess.
The problems that you mention in the other issue are non-trivial to figure out. So I guess until then the "minimum" size I suggest is a simple workaround.
Otherwise yes, maybe the relative checks are better.
I fear that managing both minimum and limit is hard to maintain and error prune. Maybe we should only set an expected asset size, which the actual asset size must not differ too much from? What is considered too much should be configurable and may default to 1% or something alike. It may provide another option, which controls if the build should fail on too low sizes. Would be the same as here but a more intuitive logic in my opinion.
The reasoning is this - sometimes I could delete a bunch of code or maybe some dependency and my bundle would become much smaller. The bundle-size test would pass easily. Then, later on, I do some stupid mistake which increases my bundle size a lot but I still won't catch it by the bundle-size test because the size is still lower than the initial "limit" that I set.
If we have a "minimum" option then I would lower both it and the "limit" after I remove the dependency initially and then the second time I would catch the mistake I do.
Not sure if I make sense but this is something that I think is possible and would be nice to have.
The text was updated successfully, but these errors were encountered: