diff options
author | 2022-03-31 17:59:39 +0000 | |
---|---|---|
committer | 2022-03-31 17:59:39 +0000 | |
commit | e044d99696ad344c7958ecab7314161ccc339f41 (patch) | |
tree | c19eb6f3ca26fecaf1ef391f69c8a9fe06316536 | |
parent | 93e431967fa7c1ac71ccb64e064f10b1397de494 (diff) | |
download | astro-e044d99696ad344c7958ecab7314161ccc339f41.tar.gz astro-e044d99696ad344c7958ecab7314161ccc339f41.tar.zst astro-e044d99696ad344c7958ecab7314161ccc339f41.zip |
[ci] format
Diffstat (limited to '')
-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')) { |