Skip to content

Very large bundle size #249

@achingbrain

Description

@achingbrain

When using the in-memory rate limiter in browsers it results in a bundle addition of 42KB:

image

If I pull just the depended on files out of this module it's more like 4KB:

image

I think this is because this module is CJS and exports all the various implementations in one blob which makes tree shaking impossible.

Could this module be updated to be ESM with only named exports?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions