So if I have script.js (original file), script.minified.js (minified file) and script.minified.js.map (source map file) - how do I find position in original file based on random position in minified file with the help of source map file?
Example:
I have some position in minified file like script.minified.js:100:30 (meaning it's 100th line and 30th column in the minified file)
What I need to retreive:
Corresponding position in original file like script.js:200:30 (meaning it's 200th line and 30th column in the original file)
A pseudo function would look like:
getOriginalPositionFromMinifiedPosition(minifiedJs, originalJs, sourceMapFile, row, column)
returns [originalRow, originalColumn]
There is a similar qestion but it was left unanswered Google Chrome: how to find original line from minified line using a source map?