Thank you for reply! Sorry for a long response.
Yes. The output messages will have the filename and line number of the error (in generated Lua file).
Yes. The original line numbers and file names will be lost, if error happens in runtime. However, there are several solutions to debug the code:
1. (Hard) Look at lua context (function names, class names, variable names). The TypeScriptToLua (TSTL) library I'm using does not obfuscate or minimize the code, therefore, result Lua code is read-able. The user can match the Lua code and TS code and determine the error line.
2. (Simple) Lua itself provides debug.traceback function. TSTL wraps the function into its own and in runtime debug.traceback can be used in code to show the current full traceback log.
If the user will combine p.1 and p.2, he will be able to debug his script in less painful way
If you have some ideas, how can I improve the logs, you can write them here or in the issues.