0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
natemoo-re 2022-03-31 17:59:39 +00:00 committed by GitHub Actions
parent 93e431967f
commit e044d99696

View file

@ -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')) {