Releases: sveltejs/svelte-hmr
Releases · sveltejs/svelte-hmr
v0.10.2
v0.10.0
v0.10.0-0
v0.9.0
v0.9.0-0
v0.7.0
v0.6.0
v0.5.1
v0.3.0
- support for accessors and named exports (from
context="module"
) - add options
acceptNamedExports
andacceptAccessors
By default, modules of components with accessors (accessors
compile option or <svelte:options accessors={true} />
are not accepted anymore. This means that an HMR update will bubble to all the modules importing such a component when it changes (hence consumer modules will be reloaded too). Without this, changes to accessible props or named exports wouldn't be reflected in consumer (especially consumer Svelte components).
acceptNamedExports
and acceptAccessors
have been added to bypass this behaviour (but many edge cases can't be properly handed by HMR).
v0.2.0
- real support for preservation of local state & reactive expressions (thanks to svelte#3822)