Skip to content

Version 9.0.0 Increased bundle size, probably due to lodash import #878

Closed
@ahedenholm-bonn

Description

@ahedenholm-bonn

Description

When trying to update to 9.0.0 we noticed that the bundle size of jsonwebtoken had increased quite a lot, making a small app of ours exceed a max size limit at a cloud platform.

It seems to us at least that it might be due to importing the whole lodash package in package.json instead of just the functions used, introduced in this commit: ecdf6cc

I realise this doesn't necessarily fit all that well under "bug", sorry in that case.

Reproduction

Here's two screenshots from bundlephobia comparing 8.5.1 vs 9.0.0

8.5.1:
image
image

9.0.0:
image
image

Environment

  • Version of this library used: 9.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions