News for hackers. Stuff that matters.
Re:Things I wish I knew before moving 50K lines of code to R... by colordrops on Friday September 01, 2023 @01:57AM (#37347309)
Or just don't even bundle if you can serve your users with ES6 modules.
Re:Things I wish I knew before moving 50K lines of code to R... by TheAceOfHearts on Friday September 01, 2023 @02:14AM (#37347432)
Performance with native ESM isn't great since you get cascading requests, unless you have very shallow dependency trees.
Re:Things I wish I knew before moving 50K lines of code to R... by colordrops on Saturday September 02, 2023 @04:21PM (#37365172)
They work fine for everything that doesn't require immediate response on first load, and even the there are ways to address that - for instance special pages for entry points and/or loading indicators.

For general performance you can cache the modules using a service worker.

In any case they are fine for most use cases.