cm0002@piefed.world to Programmer Humor@programming.devEnglish · 1 day agoYou typical Node projectlemmy.mlimagemessage-square65fedilinkarrow-up1533arrow-down18 cross-posted to: [email protected]
arrow-up1525arrow-down1imageYou typical Node projectlemmy.mlcm0002@piefed.world to Programmer Humor@programming.devEnglish · 1 day agomessage-square65fedilink cross-posted to: [email protected]
minus-squarefahfahfahfah@lemmy.billiam.netlinkfedilinkEnglisharrow-up31·1 day agoAnd this is why tree shaking exists.
minus-squaresheepishly@fedia.iolinkfedilinkarrow-up1·13 hours agoI feel like the end result of tree shaking would be the image here https://fedia.io/m/[email protected]/t/2547352/CSS-Gardening
minus-squareNat (she/they)@lemmy.blahaj.zonelinkfedilinkarrow-up12·23 hours agoDead code elimination but with a different name for some reason
minus-squareNewDark@lemmings.worldlinkfedilinkarrow-up41·1 day 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/[email protected]/t/2547352/CSS-Gardening
Gotta fix that link
It’s great when it works, yeah.
What is that?
Dead code elimination but with a different name for some reason
Because we’re monkeys
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