Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
266 views
in Technique[技术] by (71.8m points)

react web - JS chunks built with Expo web are too heavy

I am building the web version of my mobile app and I am running into a huge size issue. When I run expo build:web, the bundled js chunk files, 2.xxxx.chunk.js and app.xxxx.chunk.js, weight respectively 1.7mb and 1mb, which seems to be way too much.

For reference, I built the previous version of this website using ReactJS without expo, and the same two files were at about 466kb and 849kb. When opening that version in production, the Network tab shows that it takes less than 300kb for each of these chunks to be downloaded.

Is there anything I can do to reduce the size of these files?

This is on Expo sdk 39.

question from:https://stackoverflow.com/questions/65937612/js-chunks-built-with-expo-web-are-too-heavy

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...