[ci] yarn format
This commit is contained in:
parent
3df41d2308
commit
94a053c99c
3 changed files with 5 additions and 5 deletions
|
@ -78,7 +78,7 @@ export const __astro_component = (Component: any, componentProps: AstroComponent
|
|||
if (!renderer) {
|
||||
// If the user only specifies a single renderer, but the check failed
|
||||
// for some reason... just default to their preferred renderer.
|
||||
renderer = (__rendererSources.length === 2) ? __renderers[1] : null;
|
||||
renderer = __rendererSources.length === 2 ? __renderers[1] : null;
|
||||
|
||||
if (!renderer) {
|
||||
const name = typeof Component === 'function' ? Component.displayName ?? Component.name : `{ ${Object.keys(Component).join(', ')} }`;
|
||||
|
|
|
@ -4,8 +4,8 @@ import StaticHtml from './static-html.js';
|
|||
|
||||
function check(Component, props, children) {
|
||||
try {
|
||||
const { html } = renderToStaticMarkup(Component, props, children)
|
||||
return Boolean(html)
|
||||
const { html } = renderToStaticMarkup(Component, props, children);
|
||||
return Boolean(html);
|
||||
} catch (e) {}
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -4,8 +4,8 @@ import StaticHtml from './static-html.js';
|
|||
|
||||
function check(Component, props, children) {
|
||||
try {
|
||||
const { html } = renderToStaticMarkup(Component, props, children)
|
||||
return Boolean(html)
|
||||
const { html } = renderToStaticMarkup(Component, props, children);
|
||||
return Boolean(html);
|
||||
} catch (e) {}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue