/** Runs on: imported-js */ import { render } from '@lit-labs/ssr'; import { collectResult } from '@lit-labs/ssr/lib/render-result.js'; import { html } from 'lit'; export { html, render }; /** * @param {string | import('lit').TemplateResult} template * @returns {Promise} */ export async function ssrRender(template) { if (typeof template === 'string') { return template; } return await collectResult(render(template)); }