▲ 580 ▼ You typical Node project (lemmy.ml) submitted 1 year ago by cm0002@piefed.world to c/programmer_humor@programming.dev 67 comments fedilink hide all child comments
[–] fahfahfahfah@lemmy.billiam.net 33 points 1 year ago (3 children) And this is why tree shaking exists. permalink fedilink source hideshow 6 child comments replies: [–] candyman337@lemmy.world 15 points 1 year ago (2 children) What is that? permalink fedilink source parent hideshow 4 child comments replies: [–] NewDark@lemmings.world 43 points 1 year ago (1 child) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] candyman337@lemmy.world 13 points 1 year ago Ah ok gotcha permalink fedilink source parent [–] zea_64@lemmy.blahaj.zone 14 points 1 year ago (1 child) Dead code elimination but with a different name for some reason permalink fedilink source parent hideshow 2 child comments replies: [–] QuazarOmega@lemy.lol 4 points 1 year ago (1 child) Because we're monkeys permalink fedilink source parent hideshow 2 child comments replies: [–] mathiouchio@sh.itjust.works 2 points 1 year ago We ARE all apes permalink fedilink source parent [–] kamen@lemmy.world 3 points 1 year ago It's great when it works, yeah. permalink fedilink source parent [–] sheepishly@fedia.io 1 point 1 year ago (1 child) 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 permalink fedilink source parent hideshow 2 child comments replies: [–] ICastFist@programming.dev 3 points 1 year ago (1 child) Gotta fix that link permalink fedilink source parent hideshow 2 child comments replies: [–] sheepishly@fedia.io 0 points 1 year ago Works on my machine... permalink fedilink source parent
[–] candyman337@lemmy.world 15 points 1 year ago (2 children) What is that? permalink fedilink source parent hideshow 4 child comments replies: [–] NewDark@lemmings.world 43 points 1 year ago (1 child) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] candyman337@lemmy.world 13 points 1 year ago Ah ok gotcha permalink fedilink source parent [–] zea_64@lemmy.blahaj.zone 14 points 1 year ago (1 child) Dead code elimination but with a different name for some reason permalink fedilink source parent hideshow 2 child comments replies: [–] QuazarOmega@lemy.lol 4 points 1 year ago (1 child) Because we're monkeys permalink fedilink source parent hideshow 2 child comments replies: [–] mathiouchio@sh.itjust.works 2 points 1 year ago We ARE all apes permalink fedilink source parent
[–] NewDark@lemmings.world 43 points 1 year ago (1 child) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] candyman337@lemmy.world 13 points 1 year ago Ah ok gotcha permalink fedilink source parent
[–] zea_64@lemmy.blahaj.zone 14 points 1 year ago (1 child) Dead code elimination but with a different name for some reason permalink fedilink source parent hideshow 2 child comments replies: [–] QuazarOmega@lemy.lol 4 points 1 year ago (1 child) Because we're monkeys permalink fedilink source parent hideshow 2 child comments replies: [–] mathiouchio@sh.itjust.works 2 points 1 year ago We ARE all apes permalink fedilink source parent
[–] QuazarOmega@lemy.lol 4 points 1 year ago (1 child) Because we're monkeys permalink fedilink source parent hideshow 2 child comments replies: [–] mathiouchio@sh.itjust.works 2 points 1 year ago We ARE all apes permalink fedilink source parent
[–] kamen@lemmy.world 3 points 1 year ago It's great when it works, yeah. permalink fedilink source parent
[–] sheepishly@fedia.io 1 point 1 year ago (1 child) 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 permalink fedilink source parent hideshow 2 child comments replies: [–] ICastFist@programming.dev 3 points 1 year ago (1 child) Gotta fix that link permalink fedilink source parent hideshow 2 child comments replies: [–] sheepishly@fedia.io 0 points 1 year ago Works on my machine... permalink fedilink source parent
[–] ICastFist@programming.dev 3 points 1 year ago (1 child) Gotta fix that link permalink fedilink source parent hideshow 2 child comments replies: [–] sheepishly@fedia.io 0 points 1 year ago Works on my machine... permalink fedilink source parent