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

Limit async chunks size #281

Open IridescentMia opened 2 years ago

IridescentMia commented 2 years ago

I find @size-limit/webpack only include the initial chunk and calculate its size. In my case, I also want to know the size of async chunks and limit the size of them. Is it a common need? and Is there any discussion about this?

ai commented 2 years ago

Hi. There was no discussion yet. Do you have an idea how to implement it?

Note, that /webpack plugin is for open source libraries. For webapps you need to build JS bundle by your own bundler and then use /file plugin.