Skip to content

Consider adding "sideEffects": false to package.json #733

@brettwillis

Description

@brettwillis

Great that the module is now ESM! However bundlers like ESBuild still will not tree-shake the module because there is no side-effects declaration. Consider adding "sideEffects": false to the package.json to allow bundlers to tree-shake.

See https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions