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

check web worker size #276

Closed jeetiss closed 1 year ago

jeetiss commented 2 years ago

Webpack 5 supports native workers out of the box, is it possible to check the size of web workers with size-limit?

I tried to check support but seems size-limit doesn't check all worker chunks on default?

here is the minimal setup https://github.com/jeetiss/size-limit-web-worker

Do you have any ideas or suggestions for a proper web-worker size check?

ai commented 2 years ago

Can you set worker file in path (with * in hash)?