You probably should take a look at lazy loading your routes. Since your index.js is so big, i guess you are not doing any lazy loading of routes and thus end up with 1 giant bundle. Lazy loading routes is dependent on the router you are using, but for react-router i would take a look at https://reactrouter.com/6.30.1/route/lazy#lazy