this post was submitted on 16 Jun 2025
178 points (98.4% liked)

Programmer Humor

39557 readers
11 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
178
submitted 6 months ago* (last edited 6 months ago) by yogthos@lemmy.ml to c/programmerhumor@lemmy.ml
 
you are viewing a single comment's thread
view the rest of the comments
[–] ddplf@szmer.info 3 points 6 months ago* (last edited 6 months ago) (8 children)

Which is of very little importance in most cases, because modern bundlers incorporate treeshaking in order to filter out all the unused code when you're building a production application

Edit: okay well appearently that's controversial for some reason

[–] dazeous@lemmy.ml 4 points 6 months ago (1 children)

node_modules might take a lot of space on a dev machine, but as op said, only the files used are packed into web artifacts that are deployed.

So 12gbs can end up as 10mb, arbitrary number to highlight significance of tree shaking.

[–] cupcakezealot@piefed.blahaj.zone 2 points 6 months ago

this assumes the dev is smart enough to do --save-dev

load more comments (6 replies)