[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) return;
if (!moduleName.id) return; if (!moduleName.id) return;
// mark the entrypoint as scanned to avoid an infinite loop // mark the entrypoint as scanned to avoid an infinite loop
scanned.add(moduleName.id) scanned.add(moduleName.id);
for (const importedModule of moduleName.importedModules) { for (const importedModule of moduleName.importedModules) {
if (!importedModule.id || scanned.has(importedModule.id)) continue; if (!importedModule.id || scanned.has(importedModule.id)) continue;
const ext = path.extname(importedModule.id.toLowerCase()); 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 // Attempt: user only has a single renderer, default to that
if (!renderer && renderers.length === 1) { if (!renderer && renderers.length === 1) {
renderer = renderers[0] renderer = renderers[0];
} }
// Attempt: can we guess the renderer from the export extension? // Attempt: can we guess the renderer from the export extension?
if (!renderer) { if (!renderer) {