Re:Things I wish I knew before moving 50K lines of code to R...
by gausswho on Friday September 01, 2023 @03:45AM
(#37347891)
Perhaps I can help? Which bundler? What issues are you encountering?
[ Parent
| on HN ]
Re:Things I wish I knew before moving 50K lines of code to R...
by realusername on Friday September 01, 2023 @04:14AM
(#37348084)
We're using Vite.js/esbuild, the bundler takes 2.5GB of RAM locally.
Re:Things I wish I knew before moving 50K lines of code to R...
by gausswho on Friday September 01, 2023 @09:29AM
(#37350566)
I can offer suggestions on code-splitting, but bundler memory consumption gets into the weeds quickly.
Re:Things I wish I knew before moving 50K lines of code to R...
by realusername on Friday September 01, 2023 @09:45AM
(#37350765)
Yeah we all collectively had a look at it and there's not a lot of solutions available. The bundler needs to bundle everything at some point and you are going to pay the SPA tax.
That's why I personally don't recommend SPAs, it introduce a whole other class of issues on top of what you usually deal with. Google makes it work with Gmail and Youtube but it's Google, they can throw infinite engineers at any problem and could make those in pretty much anything.
Re:Things I wish I knew before moving 50K lines of code to R...
by gausswho on Friday September 01, 2023 @11:20AM
(#37351963)
I agree there is a complexity cost for bundlers. Whether to pay it is an equation that roughly aligns with how robust and interactive your client offering needs to be. Applications probably, websites probably not.
Re:Things I wish I knew before moving 50K lines of code to R...
by realusername on Saturday September 02, 2023 @02:45AM
(#37359080)
We're a web application and even with those, I'm not sure the bundling is worth it. Customers in some regions complain about the high payload, we made sure the chunks are split properly but with continuous deployment, there's a lot of cache invalidation anyways.