Skip to content

Adding sideEffects: false to package.json #210

Open

Description

@neoncube2

Hello! :)

Would it make sense to add sideEffects: false to package.json? This can enable more tree-shaking, in some cases: documentation

Other popular libraries, such as axios, have been adding this flag: axios/axios#5025

I'd be happy to open a PR :)

Activity

  1. mcschwa commented on Sep 26, 2025

    @mcschwa

    go ahead 👌

  2. neoncube2 commented on Sep 29, 2025

    @neoncube2
    Author

    @mcschwa Done! :)

    PR #212

  3. neoncube2 commented on Sep 29, 2025

    @neoncube2
    Author

    @mcschwa BTW, it looks like I'm not using this package in my project, so I wasn't able to test these changes. It'd probably be smart to test these changes with a project that directly uses mitt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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