stacktracify
stacktracify copied to clipboard
Solution for #4
This is a PR to support multiple source-map files (support for resolving stacktraces based on webpack chunks, eg. Angular etc.)
Solves: https://github.com/mifi/stacktracify/issues/4
Please Notice: I did feature-creep a bit, while developing, so you might want to "pick'n'choose" from what you want to integrate (I added "debug"-support, "legend"-support and webstorm IDE-settings).
This is a very useful feature and it's awesome that @askarby put in the time to submit this PR. Is there any way we can work on moving this forward?
@askarby ~~It's unclear to me if this is missing a step. I'm not seeing this map to the original source files like I expect. I'm seeing a stack trace that maps to my production js bundles.~~
This was my fault. I was still calling it with a single map file instead of pointing at a directory. This works great when you call it correctly 😛
Great job! Yes this PR contains a lot of unrelated changes, so someone would need to pull out the essential stuff needed to support multiple maps. I'll look into it when I have time
Hi folks! Looking forward for this landed!
Feel free to make a new PR with only the feature in question, and I can look into it.
@mifi Any chance to get that merged in and distribute npm package ? This would be helpful a lot!
Does anyone have some sample source map files and minified stacktraces that reference more than one source map? Now that this code is about to become more complex I would like to write an integration test for multi-source map