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
Many large libraries have many exports in an index file which are re-exports of other modules, for example a library of React components. If an application utilizes code splitting, and imports different components from different bundles, Parcel currently includes all used components in the entry bundle rather than only the components necessary. This is because the index file is marked as used, and with it comes all of its dependencies. We could be smarter about this and only include dependencies that have used symbols in the current bundle.
The text was updated successfully, but these errors were encountered:
Reproduction
Many large libraries have many exports in an index file which are re-exports of other modules, for example a library of React components. If an application utilizes code splitting, and imports different components from different bundles, Parcel currently includes all used components in the entry bundle rather than only the components necessary. This is because the index file is marked as used, and with it comes all of its dependencies. We could be smarter about this and only include dependencies that have used symbols in the current bundle.
The text was updated successfully, but these errors were encountered: