Hacker News new | past | comments | ask | show | jobs | submit login

That's what source maps are for (same situation as if you use ES6 and/or a framework and end up transpiling via Webpack etc)



sourcemaps are buggy as hell though (browser's devtools, and just generally the specification's problem, not TS's), and a lot of devtool features don't work with them. Debugging non-trivial problems with sourcemaps on is infuriating. It's really rare (though it happens every now and then in complex software) to have to go down to bytecode or native in something like C#, but in JS/TS/whatever, it happens all the time.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: