stacktracify icon indicating copy to clipboard operation
stacktracify copied to clipboard

Solution for #4

Open askarby opened this issue 4 years ago • 7 comments

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).

askarby avatar Aug 21 '20 06:08 askarby

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?

sanbornhilland avatar Nov 19 '20 18:11 sanbornhilland

@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 😛

sanbornhilland avatar Nov 19 '20 19:11 sanbornhilland

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

mifi avatar Nov 19 '20 19:11 mifi

Hi folks! Looking forward for this landed!

Kingwl avatar Apr 06 '21 04:04 Kingwl

Feel free to make a new PR with only the feature in question, and I can look into it.

mifi avatar Feb 27 '22 06:02 mifi

@mifi Any chance to get that merged in and distribute npm package ? This would be helpful a lot!

alex-kowalczyk avatar Jun 08 '22 17:06 alex-kowalczyk

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

mifi avatar Jun 08 '22 19:06 mifi