Performance
- upgrade severan to 0.7.1 (6.6–7.9% smaller JS from
optimizeComponents)
optimizeComponents removes more of each Carbon component: props nothing reads, props no call site passes (compiled as local state), event forwards and dispatches nothing listens to, empty rest spreads, and functions nothing calls once the rewrite has run. Golden app optimized JS on carbon-components-svelte 0.114.1, everything but severan held the same:
| Golden app optimized JS | v0.11.59 | v0.11.60 |
|---|---|---|
admin-dashboard
| 228.64 kB | 210.67 kB |
signup-wizard
| 195.87 kB | 182.22 kB |
docs-site
| 163.13 kB | 152.39 kB |
product-catalog
| 283.61 kB | 263.10 kB |