diff options
-rw-r--r-- | packages/astro/src/vite-plugin-astro/hmr.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/astro/src/vite-plugin-astro/hmr.ts b/packages/astro/src/vite-plugin-astro/hmr.ts index c51047cd7..b70efa2a8 100644 --- a/packages/astro/src/vite-plugin-astro/hmr.ts +++ b/packages/astro/src/vite-plugin-astro/hmr.ts @@ -81,7 +81,7 @@ export async function handleHotUpdate(ctx: HmrContext, config: AstroConfig, logg const mod = ctx.modules.find((m) => m.file === ctx.file); const file = ctx.file.replace(config.projectRoot.pathname, '/'); - + // Note: this intentionally ONLY applies to Astro components // HMR is handled for other file types by their respective plugins if (ctx.file.endsWith('.astro')) { |