blob: c51b2f4b43cb22f700059525dc3a5a572c1bf1c0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import SvelteWrapper from './Wrapper.svelte.ssr.js';
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,
};
|