Skip to content

Tree shaking and bundle size #44

@paarthenon

Description

@paarthenon

Evaluate how well the library can be tree-shaken. While the library is already pretty small (3kb gzipped) this would be nice to have, especially since many users are likely unaware of the advanced functionality of Variant (flags/matrix, type-first elements) and if they aren't using them, they might as well not spend the kb.

Other discriminants

I have a sneaking suspicion that variantCosmos, as convenient as it is from a UX perspective, will significantly complicate tree-shaking. Let's find out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    20%The last 20%. Project maturity, presentation, and optimization

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions