Size Limit is a performance budget tool for JavaScript. It checks every commit on CI, calculates the real cost of your JS for end-users and throws an error if the cost exceeds the limit.
With GitHub action Size Limit will post bundle size changes as a comment in pull request discussion.
See full docs on GitHub.