-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Do not emit names and name index mapping in source map #5713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
@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. |
@sheetalkamat So, if you don't mangle names, it is ok (nothing to map). Thanks for clarification. |
can you coordinate this with #5780 |
@sheetalkamat Do you have a preference? |
@rbuckton, Probably you should go first as my changes are small, I think it would be easier if I have to merge. |
@sheetalkamat: Alright, I've gone ahead and merged my change. |
Do not emit names and name index mapping in source map
@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.