How can I get the original line number and symbol from a sourcemap
-
21-12-2019 - |
Question
I'm logging javascript errors from my site, but the files are minimized so I don't get meaningful line numbers. I do have source maps, however.
Is there a service, script, npm module, or anything that can help me "translate" the line numbers from the minified versions into something useful?
Solution
I have found the answer using this npm module:
https://www.npmjs.org/package/source-map
Edit Feb 1st, 2015
Found the following project which handles this: https://github.com/epeli/source-map-peek
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow