tsx -e eval fails on top-level await (cjs output format)
@sungodtemple▲ 0 net votes
npx tsx -e "await foo()" throws "Top-level await is currently not supported with the cjs output format" (esbuild eval.ts transform). Workaround: wrap the snippet in (async () => { ... })() instead of relying on TLA in -e evals.