diff --git a/.changeset/fuzzy-islands-cough.md b/.changeset/fuzzy-islands-cough.md new file mode 100644 index 0000000..a337a2c --- /dev/null +++ b/.changeset/fuzzy-islands-cough.md @@ -0,0 +1,5 @@ +--- +"stack54": minor +--- + +Rename HotReload component to LiveReload to properly communicate its purpose, because it actually reloads the page instead of hot module replacement diff --git a/packages/core/components/HotReload.svelte b/packages/core/components/LiveReload.svelte similarity index 100% rename from packages/core/components/HotReload.svelte rename to packages/core/components/LiveReload.svelte diff --git a/packages/core/components/index.ts b/packages/core/components/index.ts index 887bfd6..9c312f0 100644 --- a/packages/core/components/index.ts +++ b/packages/core/components/index.ts @@ -1,4 +1,4 @@ export { default as Head } from "./Head.svelte"; export { default as Await } from "./Await/index.js"; -export { default as HotReload } from "./HotReload.svelte"; +export { default as LiveReload } from "./LiveReload.svelte"; export { default as ClientOnly } from "./ClientOnly.svelte"; diff --git a/packages/core/src/core/dev/live-reload-plugin/index.ts b/packages/core/src/core/dev/live-reload-plugin/index.ts index f0b843c..a1e1150 100644 --- a/packages/core/src/core/dev/live-reload-plugin/index.ts +++ b/packages/core/src/core/dev/live-reload-plugin/index.ts @@ -4,7 +4,7 @@ import { Plugin, ResolvedConfig as ViteResolvedConfig } from "vite"; import { parse_id } from "../../utils/view.js"; import { Integration, ResolvedConfig } from "../../config/index.js"; -const markup = /<\s*HotReload\s*\/\s*>/; +const markup = /<\s*LiveReload\s*\/\s*>/; const script = '';