mitt icon indicating copy to clipboard operation
mitt copied to clipboard

Adding `sideEffects: false` to package.json

Open neoncube2 opened this issue 5 months ago • 3 comments

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 :)

neoncube2 avatar Jul 30 '25 22:07 neoncube2

go ahead 👌

mcschwa avatar Sep 26 '25 14:09 mcschwa

@mcschwa Done! :)

PR https://github.com/developit/mitt/pull/212

neoncube2 avatar Sep 29 '25 05:09 neoncube2

@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

neoncube2 avatar Sep 29 '25 05:09 neoncube2