Very small common chunks being created during build process #14446
Unanswered
himanshu-dixit
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We have recently shifted to NextJS from the custom react server at https://headout.com. The problem is there are too many chunks that are being built, and that's great considering parallel loading.
But when we're creating bundle there are lot of small chunks, that can be merged.
I skimmed through the NextJS source and the granular chunking limit is 20Kb.
next.js/packages/next/build/webpack-config.ts
Line 429 in bef9b56
Is this an unintentional behavior or a bug? What can be done to improve it.
A sample screenshots

Beta Was this translation helpful? Give feedback.
All reactions