Skip to content

v0.3.0

Compare
Choose a tag to compare
@rixo rixo released this 25 Feb 15:58
· 295 commits to master since this release
  • support for accessors and named exports (from context="module")
  • add options acceptNamedExports and acceptAccessors

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).