Skip to content

Rollup is including lodash code inside the ESM build #541

@DavidEspinola

Description

@DavidEspinola

Since rollup.config.esm.js is configuring "external" as the full lodash library but imports are including specific modules, this config is not taking effect and Rollup is including a large ammount of lodash code in the ESM bundle.

Fixing this configuration reduces bundle size to less than a half, so I think is something good to include. I'll be happy to include this optimization in my projects.

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