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

[ci] yarn format

This commit is contained in:
matthewp 2021-11-22 13:48:32 +00:00 committed by GitHub Actions
parent aec4e8da27
commit 17954a8634
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ export function getStylesForURL(filePath: URL, viteServer: vite.ViteDevServer):
if (!moduleName) return;
if (!moduleName.id) return;
// mark the entrypoint as scanned to avoid an infinite loop
scanned.add(moduleName.id)
scanned.add(moduleName.id);
for (const importedModule of moduleName.importedModules) {
if (!importedModule.id || scanned.has(importedModule.id)) continue;
const ext = path.extname(importedModule.id.toLowerCase());

View file

@ -170,7 +170,7 @@ Did you mean to enable ${formatList(probableRendererNames.map((r) => '`' + r + '
}
// Attempt: user only has a single renderer, default to that
if (!renderer && renderers.length === 1) {
renderer = renderers[0]
renderer = renderers[0];
}
// Attempt: can we guess the renderer from the export extension?
if (!renderer) {