Closed smelukov closed 2 years ago
The current screenshot doesn’t explain how --why
will help to find a reason of bloated JS bundle.
I also created and issue in Statoscope repo since we can improve demo screenshot there as well https://github.com/statoscope/statoscope/issues/124
Thanks. Released in 6.0.
@ai thank you! As you said at your performance, now I can tell that Statoscope is using by size-limit 🤣
Now I can tell that Statoscope is using by size-limit
Absolutly!
Can you try to check that npx size-limit --why
works?
I tried on nanostores/persistent
and got 404 in the browser, because Size Limit removed temporary file.
I'm without my laptop now, but if size-limit removes build directory then we can use os tmp directory to save statoscope report 🤔
We may need to keep size-limit
running until user will close it explicitly by Ctrl+C
(we will need print note about it on --why
call).
Or we can save HTML file in current dir.
Maybe we can save statoscope report into os tmp directory by default. But add the possibility to save the report in another place
npx size-limit --why --save-report path/to/report.html
Sure. Just be sure that report in OS tmp for will not be deleted (we can use another dir for the report)
https://github.com/ai/size-limit/pull/259 here is the fix
It's all about #217