svelte-hmr

HMR commons for Svelte 3

ISC License

Downloads
2.1M
Stars
201
Committers
15

Bot releases are hidden (Show)

svelte-hmr -

Published by rixo about 4 years ago

  • accept object argument to makeHot 702eb67
  • fix Snowpack support 5d4e865

https://github.com/rixo/svelte-hmr/compare/v0.10.3...v0.11.0

svelte-hmr -

Published by rixo about 4 years ago

  • fix compatibility with svelte-loader-hot c726906

https://github.com/rixo/svelte-hmr/compare/v0.10.2...v0.10.3

svelte-hmr -

Published by rixo about 4 years ago

  • fix: update proxy to include $$set that was added in svelte 3.24.1 (fix #17) (thanks @dominikg)

https://github.com/rixo/svelte-hmr/compare/v0.10.1...v0.10.2

svelte-hmr -

Published by rixo over 4 years ago

svelte-hmr -

Published by rixo over 4 years ago

  • better document HMR behaviour 175e57e
  • BREAKING noPreserveState don't preserve internal state of props either anymore 6c61ddf
  • expose adapter path (for vite + pnpm) b4fb87c

https://github.com/rixo/svelte-hmr/compare/v0.9.0...v0.10.0-0

svelte-hmr -

Published by rixo over 4 years ago

  • update readme: add what is hmr and mention svite d24f163

https://github.com/rixo/svelte-hmr/compare/v0.9.0-1...v0.9.0

svelte-hmr -

Published by rixo over 4 years ago

svelte-hmr -

Published by rixo over 4 years ago

  • add injectCss option to avoid recreating components when only css changes (only with rollup-plugin-hot for now) c3b9863

https://github.com/rixo/svelte-hmr/compare/v0.6.0...v0.7.0

svelte-hmr -

Published by rixo over 4 years ago

  • better Svelte CSS support: remove CSS of previous version of the component on HMR update
svelte-hmr -

Published by rixo over 4 years ago

  • add link to sapper#rollup
svelte-hmr -

Published by rixo over 4 years ago

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

svelte-hmr -

Published by rixo over 4 years ago

  • real support for preservation of local state & reactive expressions (thanks to svelte#3822)
svelte-hmr -

Published by rixo almost 5 years ago

Fix Svelte 3.16+ support.

Preservation of local state and reactive blocks across HMR updates is still very flacky (read mostly broken). Fortunately, this will be fixable soon, when PR #3882 gets merged.