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

One entry points spoils shaking for another one #21

Open
emirotin opened this issue Nov 20, 2017 · 0 comments
Open

One entry points spoils shaking for another one #21

emirotin opened this issue Nov 20, 2017 · 0 comments

Comments

@emirotin
Copy link

emirotin commented Nov 20, 2017

My app has multiple entry points (that are built into separate independent bundles) that share the common library.
If one of the entry points uses some exports from that library all the bundles will get such export persisted even if it's not used by them.

Example:

  • the library defines 3 exports A, B, C
  • entry1 uses all 3 of them, all 3 are not shaken in the bundle1
  • entry2 only uses C, but still all 3 are present in the bundle2

Demo repo: https://github.com/emirotin/common-shake-issue

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

No branches or pull requests

1 participant