import { bundle } from 'emit' import ssr from 'preact-render-to-string' import denoConfig from './deno.json' with { type: 'json' } //only for deno compile (https://github.com/denoland/fresh/issues/785) import * as React from 'preact/compat' //Compile and bundle client script to js const script = await bundle('./script.tsx', { minify: true, type: 'module', compilerOptions: { inlineSourceMap: true, jsxFactory: 'h', }, 'importMap': { imports: denoConfig.imports }, }) const css = await Deno.readTextFile('./style.css') /** * Page template */ function Template() { return (