[ci] format

This commit is contained in:
natemoo-re 2022-09-30 22:15:41 +00:00 committed by fredkbot
parent cf2bba1e4a
commit 5bcddc3120
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
import { Renderer, Fragment, markHTMLString } from '../runtime/server/index.js';
import { Fragment, markHTMLString, Renderer } from '../runtime/server/index.js';
const AstroJSX = 'astro:jsx';
const Empty = Symbol('empty');

View file

@ -40,7 +40,7 @@ export async function renderJSX(result: SSRResult, vnode: any): Promise<any> {
switch (true) {
case !vnode.type: {
throw new Error(`Unable to render ${result._metadata.pathname} because it contains an undefined Component!
Did you forget to import the component or is it possible there is a typo?`)
Did you forget to import the component or is it possible there is a typo?`);
}
case (vnode.type as any) === Symbol.for('astro:fragment'):
return renderJSX(result, vnode.props.children);