Fixes
- specializer: pass snippets and
childrento library components - specializer: keep props a parent can set via
bind:thisor a custom element - specializer: read namespace members; walk other packages' components
- specializer: read runes from their bindings, not their names
Performance
- specializer: read the library's sources in parallel (~8 ms → ~4.6 ms for Carbon)
- upgrade sveast to 0.9.5 (~20% faster
analyzeScopes; ~22.5 MB vs ~27.5 MB retained models)
The shared analysis behind optimizeCss({ propAware: true }) and optimizeComponents mishandled a few Svelte shapes. Pruned CSS and rewritten JS sizes on the golden apps are the same as v0.11.53; this release is correctness and cold-analysis cost.
optimizeCss({ propAware: true }) / optimizeComponents()
- Snippets and default slot content reach library components as props (
children, named{#snippet}), so runes branches like{#if children}stay when the app fills them. - A component held with
bind:this(or used as a custom element) keeps every prop value a parent could set outside the markup call site. import * as L from "…"then<L.Button>is a real call site; other-package children inside the library are walked instead of turning the analysis off.$state/$propsare taken from scope bindings, so a store namedstateno longer shadows the rune.
Cold analysis
| v0.11.53 | v0.11.54 | |
|---|---|---|
| Read Carbon’s sources (544 files) | ~8 ms | ~4.6 ms |
analyzeScopes (sveast 0.9.5)
| — | ~20% faster |
| Retained size of large-app component models | ~27.5 MB | ~22.5 MB |