Skip to content

One entry points spoils shaking for another one #21

@emirotin

Description

@emirotin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions