Update package.json
Enable tree shaking for pako to reduce its package size in my app
@puzrin Can anyone please help with the approval here?
Which bundler are you using? I've not heard about sideeffects in package.json before - and this option is not mentioned in the npm docs as far as I can see 🙂
Side effects is used for tree shaking. Here is the document https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free
Regards, Jagjit Kaur
On Sat, Mar 25, 2023 at 2:39 PM Samuel Plumppu @.***> wrote:
Which bundler are you using? I've not heard about sideeffects in package.json before - and this option is not mentioned in the npm docs as far as I can see 🙂
— Reply to this email directly, view it on GitHub https://github.com/nodeca/pako/pull/270#issuecomment-1483927945, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAT4G75Q42A5PXUNWDLVK5DW55QXZANCNFSM6AAAAAAVLJ4TWE . You are receiving this because you authored the thread.Message ID: @.***>
Thanks! I don't use webpack anymore, but I guess this will be relevant for webpack users :)