Hacker News new | ask | show | jobs
by laktek 594 days ago
I think the closest thing we got is the Default fetch export https://docs.deno.com/runtime/fundamentals/http_server/#defa..., which Cloudflare Workers, Deno Deploy and Supabase Edge Functions support.
2 comments

Node is the only major outlier. Bun supports this convention as well: https://bun.sh/docs/api/http#export-default-syntax
I had no idea this was a thing. Thanks!