Description
Describe the bug
My site at https://c3.ventures/ actually grows in size when migrating from 4.2.18 to 5.0.0-next.233.
Svelte 4:
chunks - 38,059 bytes
entry - 6,079 bytes
nodes - 61,245 bytes
Svelte 5:
chunks - 47,499 bytes
entry - 5,255 bytes
nodes - 61,206 bytes
I believe this is primarily triggered in my case by the site having 25 instances of @sveltejs/enhanced-img
though I'm not sure that's necessary to hit this. Inlining the srcset
during template creation would reduce the HTML creation portion of the compiled JS from 21K to 6.8K (this is not the whole script - i.e. it excludes Svelte's runtime, etc.)
It's possible that solution to this might be #11843, but I'm not 100% sure so have filed this as a separate issue to not confuse that thread in the case that it isn't the way to solve this
Reproduction
Here's a REPL with 25 picture
tags that generates over 600 lines of output. It should probably be able to be done in just a few lines.
Logs
No response
System Info
5.0.0-next.233
Severity
blocking an upgrade