Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Warn about large bundle sizes #2648
We now have docs both about code splitting and about analyzing bundles so seems like a good time.
The limits are very liberal IMO. For the vast majority of apps it's possible to fit the main bundle into 512k gzipped, and 1M gzipped for individual chunks. If that doesn't fit you, you might as well need to eject for other reasons (e.g. too slow builds that need fine tuning with HappyPack or similar).
In the screenshot I hardcoded it to show the message (to test it), but in practice it will only appear for main bundles > 512k gzipped, and for chunks > 1m gzipped.
This partially alleviates the problem #2645 is hiding. Perf sensitive users will probably notice this. We still don't address the issue in #2612 specifically but there's no way for us to know if the person has opted out of using service workers, so I don't think we can be more detailed there.