_app.js build bundle size too big
See original GitHub issueBug report
The _app.js build bundle size is too big
Describe the bug
I have looked through many issues for solutions and it seems that the team has repeatedly mentioned that next.js build bundle size is small. What I realised was that the _app.js was already 216 kb (with yellow indication, not green) when I have not added any additional code or library.
Adding a little more code or importing some libraries in a custom _app.js file will increase the bundle size until the indicator becomes red, meaning it is a unacceptable size?
To Reproduce
Just do npx create-next-app
and yarn build
Expected behavior
Currently, _app.js bundle size is already 216 kb. Expected should be a much smaller value. I don’t know what should be the acceptable size, but of course, the smaller the better. Otherwise, it seems like next.js is really too bloated.
Screenshots
System information
- OS: Windows
- Version of Next.js: 9.1.5
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:11 (5 by maintainers)
Hey guys I’d created a new project following your with redux thunk example and my _app.js file size became larger than 500kb.
Please shed some light.
just a suggestion… consider removing (or showing in different color) number for the total size of shared: