Skip to content

feat: improve tree shaking support #495

@deodad

Description

@deodad

What is the feature you would like to implement?
Structure our package distributions to better support tree shaking by not bundling into a single index file.

Additional context
The safest form of tree shaking relies on ES module structure to eliminate unused code. We currently bundle our package distributions into a single index file, which makes this kind of tree shaking impossible.

I'd suggest just transpiling with tsc. This would also make #411 viable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedWell specified and ready to be worked ons-readyReady to be picked upt-perfImprove performance

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions