cm0002@piefed.world to Programmer Humor@programming.devEnglish · 16 days agoYou typical Node projectlemmy.mlimagemessage-square9linkfedilinkarrow-up110arrow-down10 cross-posted to: programmerhumor@lemmy.ml
arrow-up110arrow-down1imageYou typical Node projectlemmy.mlcm0002@piefed.world to Programmer Humor@programming.devEnglish · 16 days agomessage-square9linkfedilink cross-posted to: programmerhumor@lemmy.ml
minus-squarefahfahfahfah@lemmy.billiam.netlinkfedilinkEnglisharrow-up1·16 days agoAnd this is why tree shaking exists.
minus-squareNewDark@lemmings.worldlinkfedilinkarrow-up1·16 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.