cm0002@piefed.world to Programmer Humor@programming.devEnglish · 10 days agoYou typical Node projectlemmy.mlimagemessage-square7linkfedilinkarrow-up14arrow-down10
arrow-up14arrow-down1imageYou typical Node projectlemmy.mlcm0002@piefed.world to Programmer Humor@programming.devEnglish · 10 days agomessage-square7linkfedilink
minus-squarefahfahfahfah@lemmy.billiam.netlinkfedilinkEnglisharrow-up1·10 days agoAnd this is why tree shaking exists.
minus-squareNewDark@lemmings.worldlinkfedilinkarrow-up1·10 days agoIf you import 1% of your module code, you only compile the actual used code. Tree shaking is removing dead code paths that aren’t used.
And this is why tree shaking exists.
What is that?
If you import 1% of your module code, you only compile the actual used code. Tree shaking is removing dead code paths that aren’t used.