Do not emit names and name index mapping in source map - #5713
Conversation
Since sourcemap spec is not very clear about symbol translation and use of nameIndex of the mapping, dont emit it
|
Hi, what do you mean? Spec is clear and IntelliJ Platform uses it. Please don't break debug!
Please don't break existing funcitonality and fix #5224. I will answer to any question and can provide closed source code (partially opened - see https://github.com/JetBrains/intellij-community/blob/master/platform/script-debugger/debugger-ui/src/com/jetbrains/javascript/debugger/NameMapper.kt) As you can see in the provided NameMapper, there is a flag js.debugger.name.mappings.by.source.code as a workaround of 5224. Our users happy to use TypeScript and debug it. |
|
Please do not merge this at least until implementing another solution for debugging |
|
Vladimir Krivosheev (@develar) we have never emitted variable names in the source map. We were emitting the callstack name it belonged too.. So functionality you are talking about is anyways broken and unsupported without this change. |
|
Sheetal Nandi (@sheetalkamat) So, if you don't mangle names, it is ok (nothing to map). Thanks for clarification. |
|
can you coordinate this with #5780 |
|
The easiest is to wait for Ron Buckton (@rbuckton) to merge #5780 and then apply the change on top, the tests should be unchanged. |
|
Sheetal Nandi (@sheetalkamat) Do you have a preference? |
|
Ron Buckton (@rbuckton), Probably you should go first as my changes are small, I think it would be easier if I have to merge. |
|
Sheetal Nandi (@sheetalkamat): Alright, I've gone ahead and merged my change. |
Do not emit names and name index mapping in source map
|
Sheetal Nandi (@sheetalkamat) can you add a blurb on this change in https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#typescript-18 |
|
Without name mappings it is not possible to debug
|
|
+1 |

Since source map spec isn't clear about use of names, removing names entry all together. We can look at the symbol mapping once there is update to the spec about it.