blob: 8b42a12a1a59de4b0403125d078fda92c2d04212 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import SvelteWrapper from './Wrapper.svelte';
function check(Component) {
return Component['render'] && Component['$$render'];
}
async function renderToStaticMarkup(Component, props, children) {
const { html } = SvelteWrapper.render({ __astro_component: Component, __astro_children: children, ...props });
return { html };
}
export default {
check,
renderToStaticMarkup,
};
|