this post was submitted on 16 Jun 2025
159 points (98.2% liked)

Programmer Humor

37037 readers
183 users here now

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

Rules:

founded 5 years ago
MODERATORS
159
submitted 3 weeks ago* (last edited 3 weeks ago) by [email protected] to c/[email protected]
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 3 weeks ago* (last edited 3 weeks 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

[–] [email protected] 4 points 3 weeks 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.

[–] [email protected] 2 points 2 weeks ago

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

load more comments (6 replies)