[ci] format

This commit is contained in:
matthewp 2022-08-10 19:29:31 +00:00 committed by fredkbot
parent 561a34d912
commit 5970ae0774
2 changed files with 9 additions and 9 deletions

View file

@ -150,14 +150,14 @@ export async function handleHotUpdate(
// If this is a module that is imported from a <script>, invalidate the Astro
// component so that it is cached by the time the script gets transformed.
for(const mod of filtered) {
if(mod.id && isAstroScript(mod.id) && mod.file) {
const astroMod = ctx.server.moduleGraph.getModuleById(mod.file);
if(astroMod) {
mods.unshift(astroMod);
}
}
}
for (const mod of filtered) {
if (mod.id && isAstroScript(mod.id) && mod.file) {
const astroMod = ctx.server.moduleGraph.getModuleById(mod.file);
if (astroMod) {
mods.unshift(astroMod);
}
}
}
// 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'));

View file

@ -362,7 +362,7 @@ ${source}
return handleHotUpdate.call(this, context, {
config,
logging,
compile
compile,
});
},
};