pako icon indicating copy to clipboard operation
pako copied to clipboard

Update package.json

Open JagjitKaur opened this issue 3 years ago • 4 comments

Enable tree shaking for pako to reduce its package size in my app

JagjitKaur avatar Feb 28 '23 22:02 JagjitKaur

@puzrin Can anyone please help with the approval here?

JagjitKaur avatar Mar 04 '23 00:03 JagjitKaur

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 🙂

Greenheart avatar Mar 25 '23 21:03 Greenheart

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: @.***>

JagjitKaur avatar Mar 26 '23 00:03 JagjitKaur

Thanks! I don't use webpack anymore, but I guess this will be relevant for webpack users :)

Greenheart avatar Mar 26 '23 03:03 Greenheart