mitt
mitt copied to clipboard
Adding `sideEffects: false` to package.json
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: https://github.com/axios/axios/pull/5025
I'd be happy to open a PR :)
go ahead 👌
@mcschwa Done! :)
PR https://github.com/developit/mitt/pull/212
@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