fabiandev / ts-runtime

Runtime Type Checks for TypeScript
https://fabiandev.github.io/ts-runtime/
MIT License
489 stars 5 forks source link

SourceMap support? #14

Open Axure opened 6 years ago

Axure commented 6 years ago

Currently there seems no sourceMap support. The line numbers in the runtime errors are actually those in the compiled .js files.

fabiandev commented 6 years ago

Source maps used to work at some point. Will check what's wrong here.

fabiandev commented 6 years ago

I've investigated on this one in the meantime and it seems I will have to map the generated code in the transformation process in order for source maps to be correct. This is quite some amount of work, so please don't expect this to be done very soon. I will, however, keep this on my list of things to do. Thanks for flagging!