cm0002@piefed.world to Programmer Humor@programming.devEnglish · 2 days agoYou typical Node projectlemmy.mlimagemessage-square68fedilinkarrow-up1569arrow-down18
arrow-up1561arrow-down1imageYou typical Node projectlemmy.mlcm0002@piefed.world to Programmer Humor@programming.devEnglish · 2 days agomessage-square68fedilink
minus-squarefahfahfahfah@lemmy.billiam.netlinkfedilinkEnglisharrow-up32·2 days agoAnd this is why tree shaking exists.
minus-squaresheepishly@fedia.iolinkfedilinkarrow-up1·1 day agoI feel like the end result of tree shaking would be the image here https://fedia.io/m/programmer_humor@programming.dev/t/2547352/CSS-Gardening
minus-squareNat (she/they)@lemmy.blahaj.zonelinkfedilinkarrow-up13·2 days agoDead code elimination but with a different name for some reason
minus-squareNewDark@lemmings.worldlinkfedilinkarrow-up42·2 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.
I feel like the end result of tree shaking would be the image here https://fedia.io/m/programmer_humor@programming.dev/t/2547352/CSS-Gardening
Gotta fix that link
Works on my machine…
What is that?
Dead code elimination but with a different name for some reason
Because we’re monkeys
We ARE all apes
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.
Ah ok gotcha
It’s great when it works, yeah.