Alright.. it was time for me to compare svelvet to a simple rollup build (right). This test was deployed on netlify which has http2 and gzip by default. The app is 100% the same code, just built 2 different ways. Rollup build is HALF the *transfer* size and faster to download.
Next up is pagespeed. Building an ESM file per svelte component fares pretty badly here too. There& #39;s a single hero img on this page, so this is mostly comparing the js difference.
So it seems like bundling for production is still way better for network performance (at least for the size and structure of apps like mine or larger). Building to individual ESM files and causing an import waterfall just doesn& #39;t seem like the way to go https://abs.twimg.com/emoji/v2/... draggable="false" alt="đŸ€·â€â™‚ïž" title="Man shrugging" aria-label="Emoji: Man shrugging">
And at this point, it feels like svelvet is dead by my own hand https://abs.twimg.com/emoji/v2/... draggable="false" alt="😅" title="Smiling face with open mouth and cold sweat" aria-label="Emoji: Smiling face with open mouth and cold sweat">
The network & pagespeed test was done on this _very_ simple page. The fact that ESM-file-per-component fares so badly on this is a really bad sign IMO
Started this thread due to an earlier thread from yesterday. More context about why I was suspecting this already: https://twitter.com/jakedeichert/status/1252257904473800711">https://twitter.com/jakedeich...
You can follow @jakedeichert.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled: