Skip to content

Commit

Permalink
Update hmr.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re authored Aug 3, 2022
1 parent 0c04e21 commit 7f1350e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/astro/src/vite-plugin-astro/hmr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export async function handleHotUpdate(
}
}

// TODO: Svelte files should be marked as `isSelfAccepting` but they don't appear to be
const isSelfAccepting = mods.every((m) => m.isSelfAccepting || m.url.endsWith('.svelte'));
if (isSelfAccepting) {
info(logging, 'astro', msg.hmr({ file }));
Expand Down

0 comments on commit 7f1350e

Please sign in to comment.