Open ad1992 opened 1 year ago
Any update on this ?
Alright so digged more in to this and this line seems to be the culprit https://github.com/andresz1/size-limit-action/blob/master/src/SizeLimit.ts#L32
bytes
npm package considers 1KB = 1024 bytes where as
1KB = 1000 bytes
1KIB = 1024 bytes
and since size-limit
itself accepts in KB
so its better if we just divide by 1000
here instead to sync with the actual size-limit result.
Below is the result json after running size-limit
As you can see the size is exceeded for
excalidraw.production.min.js
However in the comment posted by size-limit, this is what is shown
And its not clear as the size
279.33 kB
is within the limit ofexcalidraw.production.min.js
(285 kB)