You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Source maps: the names attribute is always empty #672
Note that the names attribute is an empty array. This makes the source maps less usable than they could be as Chrome's debugger doesn't recognize the renamed variables in the mapped code, doesn't show their values on hover, etc.
For comparison, let's process the same main.js with Uglify: uglifyjs main.js -o main-uglified.js -c -m --source-map main-uglified.js.map
Here is the source map. Note that the names are okay now.
For me, source map support in browsers is really rough, not very consistent. So it is hard for me to justify debugging these issues. I am open to someone else investigating them though and working out a pull request for it if it is possible. However, for this particular issue, it seems better if the browser is just smarter about the translation, as it has the mapping from source to running code in the source map.
Going to close this because I do not plan on working on it, but I am open to working on a merge if someone else does a pull request.
Activity
[-]Source maps: the name attribute is always empty[/-][+]Source maps: the names attribute is always empty[/+]jrburke commentedon Apr 30, 2014
For me, source map support in browsers is really rough, not very consistent. So it is hard for me to justify debugging these issues. I am open to someone else investigating them though and working out a pull request for it if it is possible. However, for this particular issue, it seems better if the browser is just smarter about the translation, as it has the mapping from source to running code in the source map.
Going to close this because I do not plan on working on it, but I am open to working on a merge if someone else does a pull request.