Hacker News new | ask | show | jobs
by orta 326 days ago
tsc's code is mostly the type-checker, you want to look for a "transpiler" here, so embedding either swc, esbuild, sucrase or the like to handle the process of converting for you. I've never heard of one written in C++ but that may exist.
1 comments

swc exists as wasm which any browser should be able to execute.