You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As our app which was initially built on CRA has really grown some of its initial bundle/chunk file sizes. It seems that if we import even a named function (utility function for example). If the file we are importing from includes other functions and other imports for those functions, then all of that is also brought into the same chunk file. Is this normal behavior among all apps? I thought it would be smart enough to break apart these files. We do use things like lazy loading at route level as well.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
As our app which was initially built on CRA has really grown some of its initial bundle/chunk file sizes.
It seems that if we import even a named function (utility function for example). If the file we are importing from includes other functions and other imports for those functions, then all of that is also brought into the same chunk file. Is this normal behavior among all apps? I thought it would be smart enough to break apart these files.
We do use things like lazy loading at route level as well.
Beta Was this translation helpful? Give feedback.
All reactions