svelte-hmr

HMR commons for Svelte 3

ISC License

Downloads
2.1M
Stars
201
Committers
15

Bot releases are visible (Hide)

svelte-hmr -

Published by rixo almost 4 years ago

svelte-hmr -

Published by rixo almost 4 years ago

  • fix hotOptions not being applied 97eacf4

https://github.com/rixo/svelte-hmr/compare/v0.11.4...v0.11.5

svelte-hmr -

Published by rixo almost 4 years ago

svelte-hmr -

Published by rixo almost 4 years ago

  • fix handling of $$set method introduced in Svelte 3.24.1 507aaaf

https://github.com/rixo/svelte-hmr/compare/v0.11.2...v0.11.3

svelte-hmr -

Published by rixo almost 4 years ago

  • documenting options 38d0c49
  • optim: remove the need to pass compile options & result to the client 1cc3e97
  • fix: prevent crash when props are added to a component that previously had none 8f6d8af

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

svelte-hmr -

Published by rixo about 4 years ago

  • make accept handler stateless for support of CSS injection in Snowpack afef30e

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

svelte-hmr -

Published by rixo about 4 years ago

  • fix CSS injection to support add_location, & add support for css:false d6bceb9

https://github.com/rixo/svelte-hmr/compare/v0.11.1...v0.11.2-0

svelte-hmr -

Published by rixo about 4 years ago

  • fix loosing prop on noPreserveState cdd8030

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

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)