r/react • • Feb 28 '22

General Discussion How to Find Unused Javascript and CSS code

https://youtu.be/MTZC-OSrPmE
4 Upvotes

2 comments sorted by

1

u/[deleted] Mar 01 '22

.

1

u/not_a_gumby Mar 01 '22

Could you do a demonstration of how to use coverage with a react app? It just tells me that 40% of my massive bundle file is unused, and like, of course it is because it contains all of the javascript for the entire application.