{"library":"svelte-hmr","type":"library","category":null,"description":"svelte-hmr provides the core logic and utilities for implementing Hot Module Replacement (HMR) in Svelte 3 and 4 applications. It is not an end-user bundler plugin itself, but rather a foundational package leveraged by bundler-specific plugins (e.g., for Rollup, Webpack, Vite) to enable seamless development experiences. The package is currently stable at version `0.16.0` and receives updates as Svelte itself evolves or HMR patterns improve, typically releasing patch and minor versions on an as-needed basis rather than a strict schedule. Key differentiators include its bundler-agnostic design, robust state preservation mechanisms (both component and local variable state), and intelligent CSS injection capabilities, offering a consistent HMR experience across different build tools without needing full page reloads.","language":"javascript","status":"active","version":"0.16.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install svelte-hmr","imports":["import { init } from 'svelte-hmr';","import { resolveOptions } from 'svelte-hmr/options';","import { hotUpdate } from 'svelte-hmr/loader';"]},{"cmd":"yarn add svelte-hmr","imports":[]},{"cmd":"pnpm add svelte-hmr","imports":[]}],"homepage":null,"github":"https://github.com/sveltejs/svelte-hmr","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/svelte-hmr","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/svelte-hmr/compatibility"}}