Skip to content

Commit

Permalink
refactor: rename HotReload component to LiveReload
Browse files Browse the repository at this point in the history
  • Loading branch information
joshamaju committed Nov 1, 2024
1 parent c448bd7 commit 2152754
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-islands-cough.md
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/core/components/index.ts
Original file line number Diff line number Diff line change
@@ -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";
2 changes: 1 addition & 1 deletion packages/core/src/core/dev/live-reload-plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<script type="module" src="@vite/client"></script>';

Expand Down

0 comments on commit 2152754

Please sign in to comment.