[ci] format
This commit is contained in:
parent
561a34d912
commit
5970ae0774
2 changed files with 9 additions and 9 deletions
|
@ -150,14 +150,14 @@ export async function handleHotUpdate(
|
||||||
|
|
||||||
// If this is a module that is imported from a <script>, invalidate the Astro
|
// 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.
|
// component so that it is cached by the time the script gets transformed.
|
||||||
for(const mod of filtered) {
|
for (const mod of filtered) {
|
||||||
if(mod.id && isAstroScript(mod.id) && mod.file) {
|
if (mod.id && isAstroScript(mod.id) && mod.file) {
|
||||||
const astroMod = ctx.server.moduleGraph.getModuleById(mod.file);
|
const astroMod = ctx.server.moduleGraph.getModuleById(mod.file);
|
||||||
if(astroMod) {
|
if (astroMod) {
|
||||||
mods.unshift(astroMod);
|
mods.unshift(astroMod);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Svelte files should be marked as `isSelfAccepting` but they don't appear to be
|
// 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'));
|
const isSelfAccepting = mods.every((m) => m.isSelfAccepting || m.url.endsWith('.svelte'));
|
||||||
|
|
|
@ -362,7 +362,7 @@ ${source}
|
||||||
return handleHotUpdate.call(this, context, {
|
return handleHotUpdate.call(this, context, {
|
||||||
config,
|
config,
|
||||||
logging,
|
logging,
|
||||||
compile
|
compile,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue