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

Programmer Humor

37400 readers
15 users here now

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

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] ddplf@szmer.info 3 points 1 month ago* (last edited 1 month 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 1 month 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.

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

load more comments (6 replies)