Open
Description
Describe the bug
I created a plugin as a custom element with Svelte 3 it was generating a small bundle size around 70kb
but after migration to Svelte 4 its now around 120kb
, that's almost double the size .. nothing changed at all just svelte version.
I provided a quick example from svelte's own examples that's generating 22.67kb
with Svelte 3 and 27.21kb
with Svelte 4 .. and added sass support and imported a few sass modules from bootstrap just for testing purposes.
Reproduction
Logs
Svelte 3:
✓ 8 modules transformed.
dist/index.html 0.40 kB │ gzip: 0.28 kB
dist/assets/index-e5819c2c.js 22.67 kB │ gzip: 8.95 kB
✓ built in 4.75s
Svelte 4:
✓ 29 modules transformed.
dist/index.html 0.40 kB │ gzip: 0.28 kB
dist/assets/index-d63461f3.js 27.21 kB │ gzip: 9.97 kB
✓ built in 5.19s
System Info
Windows 10, Node v16.15.1, Google chrome.
Severity
annoyance