The bundle size produced by expo build:web is huge at average 3mb.
I completed steps at https://docs.expo.io/guides/web-performance/. My app has no images so no real issue to optimise them. Other suggested improvements changed very little.
I used the bundle analyser and I have no installed modules of any significant size to cause the 3mb bundle size.
When I run build, I get:
entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (48.8 KiB). This can impact web performance.
Entrypoints:
app (3.2 MiB)
static/js/runtime~app.aaee9ccd.js
static/js/2.a5f54fa3.chunk.js
static/js/app.98ae2f23.chunk.js
The result of this is a webpage which peforms extremely poorly.
If I run google “lightspeed” (pagespeed insights) on the built result in browser, I get extremely poor ratings for initial page load.
I am thinking a potential way to solve, is branch off, then expo eject, then remove all unecessary npm modules to reduce bundle size.
I’ve also added lazy load on some components without much improvement.
Are there any other suggestions you might have?
Also attached are the google lightspeed test results.