/// /// /// /// /// import { start } from "$fresh/server.ts"; import manifest from "./fresh.gen.ts"; function throwErr() { throw new Error("Error thrown"); } await start(manifest, { plugins: [ { name: "thrower", entrypoints: { main: `data:application/javascript,export default ${throwErr}`, }, render(ctx) { ctx.render(); return { scripts: [{ entrypoint: "main", state: {} }] }; }, }, ], });