BundleSize: First Load JS Shared by all
Answered
Spinge Bib Sqorpnts posted this in #help-forum
Hi! While building my app I noticed that my First Load JS Shared by all is 88kb, which feels a bit excessive since I don't have many global packages.
Using bundleAnalyzer, I see this: (image attached)
Using bundleAnalyzer, I see this: (image attached)
Answered by joulev
Left is the react runtime, right is the nextjs runtime. They are forced, you cannot reduce this. What you are seeing is the minimum level already, all nextjs apps running on the app router have this.
4 Replies
Does that mean that I can't actually reduce it any further?
Console output for additional context
@Spinge Bib Sqorpnts Hi! While building my app I noticed that my First Load JS Shared by all is 88kb, which feels a bit excessive since I don't have many global packages.
Using bundleAnalyzer, I see this: (image attached)
Left is the react runtime, right is the nextjs runtime. They are forced, you cannot reduce this. What you are seeing is the minimum level already, all nextjs apps running on the app router have this.
Answer
@joulev Left is the react runtime, right is the nextjs runtime. They are forced, you cannot reduce this. What you are seeing is the minimum level already, all nextjs apps running on the app router have this.
That's what I suspected, a bit unfortunate all nextjs apps come with nearly 100kb forced