blob: 101dca53569007165b3cc0c463cb8a63f3d6b2e9 (
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
};
|