3 ms·
TypeScript's generated code looks very much like how you would write it if you did it in ES5. Classes are prototype based, namespaces are variable with IFFEs, m
by gilamran 11y ago
TypeScript's generated code looks very much like how you would write it if you did it in ES5.
Classes are prototype based, namespaces are variable with IFFEs, modules are commonjs or requirejs, etc. This means that the generated code feels like your own code, variables, parameters and function names are the same so it's actually your code in ES5.
Because of all these reasons we never felt the need to use source-maps (TypeScript can generate them). The only source-maps that we did use was for the minified files.