Ad

How To Analyze Next Js Bundle Size And Content

- 1 answer

I've just upgrated to Next JS 9.0 and when I run a build there's a fantastic new feature which shows you the size of all the compiled pages. They're all around 20-30k except for pages which use Formik which tend to be at least double that size. The main problem is that the app.js file is over 600k and red.

Is there a way to dive further and see on a more granular level what's making up all my bundles?

Ad

Answer

Ad
source: stackoverflow.com
Ad