From e044d99696ad344c7958ecab7314161ccc339f41 Mon Sep 17 00:00:00 2001 From: natemoo-re Date: Thu, 31 Mar 2022 17:59:39 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/vite-plugin-astro/hmr.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')) {