Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parcel does not split side effect free re-exports across bundles #7392

Closed
devongovett opened this issue Dec 1, 2021 · 0 comments · Fixed by #8432
Closed

Parcel does not split side effect free re-exports across bundles #7392

devongovett opened this issue Dec 1, 2021 · 0 comments · Fixed by #8432

Comments

@devongovett
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant