ai / size-limit

Calculate the real cost to run your JS app or lib to keep good performance. Show error in pull request if the cost exceeds the limit.
MIT License
6.52k stars 1.82k forks source link

Adding a way to track the number of chunks created and keeping a threshold for the same #293

Open MadaraUchiha-314 opened 2 years ago

MadaraUchiha-314 commented 2 years ago

Number of chunks created also can be a potential performance deterrent. Ideally we don't want too many chunks as well as too less chunks. The number of chunks that a build should create is totally dependent on use-case.

size-limit should provide a functionality to track and keep a bound (lower and upper) on the total number of chunks which are created.

ai commented 2 years ago

You can write an additional plugin for that.

There is a PR skating third party plugins.