Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
orta
· 1y ago · 0 comments
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.
Comments
[–]
silverwind
1y ago
swc exists as wasm which any browser should be able to execute.