-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
Describe the bug
So, I'm updating my project to Svelte 5 and I ran into a a problem.
Just by updating it the bundle-size of my project grew by aproximatedly 9kb. Since it was on my example project, it increased more than a third of it's total bundlesize i.e. from 23kb to 32kb aproximatedly.
Since I'm building my code onto small standalone apps I really feel this increase on bundle size.
I guess it's expected but I'm opening a issue to seek some help to understand if has something that I can do. Tbh at visualizer my code itself is smaller than before, so I guess it's just some weird pattern on my configs that I couldn't really made fully functional.
Also I'm using this project on my daily job and I tried updating the code there I also got the same amount of 9kb increase in my standalone widgets. - In this case, it grew from somewhere from 35kb to somewhere of 43kb.
Reproduction
Svelte 5 version: visualizer .min.js
Svelte 4 version: visualizer .min.js
Repo: svelte-standalone
Logs
No response
System Info
Svelte 5:
System:
OS: Linux 6.5 Pop!_OS 22.04 LTS
CPU: (12) x64 AMD Ryzen 5 5600 6-Core Processor
Memory: 23.55 GB / 31.24 GB
Container: Yes
Shell: 5.8.1 - /usr/bin/zsh
Binaries:
Node: 20.16.0 - ~/.nvm/versions/node/v20.16.0/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 10.8.1 - ~/.nvm/versions/node/v20.16.0/bin/npm
pnpm: 8.6.1 - ~/.local/share/pnpm/pnpm
bun: 1.1.26 - ~/.bun/bin/bun
Browsers:
Brave Browser: 129.1.70.117
Chromium: 128.0.6613.84
npmPackages:
svelte: ^5.1.0 => 5.1.0
Svelte 4:
System:
OS: Linux 6.5 Pop!_OS 22.04 LTS
CPU: (12) x64 AMD Ryzen 5 5600 6-Core Processor
Memory: 23.46 GB / 31.24 GB
Container: Yes
Shell: 5.8.1 - /usr/bin/zsh
Binaries:
Node: 20.16.0 - ~/.nvm/versions/node/v20.16.0/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 10.8.1 - ~/.nvm/versions/node/v20.16.0/bin/npm
pnpm: 8.6.1 - ~/.local/share/pnpm/pnpm
bun: 1.1.26 - ~/.bun/bin/bun
Browsers:
Brave Browser: 129.1.70.117
Chromium: 128.0.6613.84
npmPackages:
svelte: ^4.2.7 => 4.2.19Severity
annoyance