developit / developit/mitt

Adding `sideEffects: false` to package.json

Open
#210 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.9k
Forks
488
PR merge metrics
No merged PRs in 30d

Description

Hello! :)

Would it make sense to add `sideEffects: false` to `package.json`? This can enable more tree-shaking, in some cases: [documentation](https://github.com/webpack/webpack/blob/main/examples/side-effects/README.md)

Other popular libraries, such as `axios`, have been adding this flag: https://github.com/axios/axios/pull/5025

I'd be happy to open a PR :)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.