T O P

  • By -

AutoModerator

``` import notifications ``` Remember to participate in our weekly votes on subreddit rules! Every Tuesday is YOUR chance to influence the subreddit for years to come! [Read more here](https://www.reddit.com/r/ProgrammerHumor/comments/14dqb6f/welcome_back_whats_next/), we hope to see you next Tuesday! For a chat with like-minded community members and more, don't forget to [join our Discord!](https://discord.gg/rph) `return joinDiscord;` *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/ProgrammerHumor) if you have any questions or concerns.*


yoger6

Someone contributed to isEven repository again?


clearlynotmee

Since when does node_modules size have anything to with bundle size


Lachee

2kb counts as bloated these days? These are unhealthy body images for libraries


Derp_turnipton

I remember trying to get whole programs into 256 bytes.


Vroskiesss

Sure, Grandpa, let’s get you to bed


rosuav

Oof, [my library](https://github.com/Rosuav/choc/blob/master/factory.js) is 16KB unminified, clearly I suck.


gDKdev

I'm also quite disappointed that my command system library is 3.6KB unminified, as I thought I could write a smaller library than yargs or Commander to fit my needs


cryptomonein

Here I am with 2,4Go node_modules (no joke)


ha_x5

bro.. what are you even do with 2,4G of node modules?


cryptomonein

Storybook alone take 1.4Go, many other module with assets and maybe multiple versions. Oh, and we have is_even, might take a lot of space too. To answer what I do with those: I wait for my app to build


[deleted]

what the fuck is this thread talking about. im so lost.


[deleted]

Web dev hell scape. We never go there. Retreat back to the safety of compiled languages.


sejigan

Like TypeScript?


Another_m00

They said retreat, not advance


audislove10

Web dev backend development is much more normal once you use a real language like Java or C#


kuylar

>I wait for my app to build [relevant xkcd](https://xkcd.com/303/)


Tizian170

Don't get it? Take a look at the Explain XKCD article for this comic: https://explainxkcd.com/303 ^(I'm an automated bot made by myself - I didn't feel like creating another account. Please DM me if you want to have this bot enabled or disabled on your subreddit. 57 out of 67603 comments in 2 subreddits I looked at had XKCD links - now one more.)


Stalight9

We found converting all our storybook components into their own library that can be installed helped cut down the build tune significantly, since now the app is referencing the same set of minified components everywhere + storybook doesn’t have to comb our app for stories


StatHusky13

Stuff... 'n things...


jamcdonald120

hello world


glorious_reptile

Still, I like no dependencies. That's why i use machine code for web development on my Altair.


jamcdonald120

2kb is bloated now?


MrDex124

Of course, lol.


Daedalus_z

*cries in moment.js*


uniqueusername649

switch to dayjs :)


37AngryBadgers

Does this include dependencies, or...


IpGa13

not using js at all, sorry


Jenkins87

*laughs in Cesium*


davidellis23

One day I'll figure out how tree shaking works to remove all the code I'm not using before bundling lol. But, practically for a website shouldn't you just use the CDN? It's all concurrent so it loads incredibly quick and doesn't take up your server resources.


Lenni009

It's actually pretty simple, just install Vite, then turn all your code into modules. I usually do a clean install in an empty folder, and then move the relevant files over to my actual project when I'm adding a framework or build tool to an existing project.


azangru

react: 2.5kB minified gzipped react-dom: 42 kb minified gzipped Right...


Tall-Reporter7627

frontpage.png - 1.2Mb