stacktracify icon indicating copy to clipboard operation
stacktracify copied to clipboard

Support multiple file sourcemaps

Open agg23 opened this issue 4 years ago • 3 comments

It would be very useful if you could provide a folder of sourcemaps, that way you don't have to run the command for each file in chunked build scenarios.

agg23 avatar May 28 '20 15:05 agg23

I'm not sure how this would work. Can one stack trace originate from multiple source maps? How does stacktracify know which source map the stack trace is from?

mifi avatar May 30 '20 11:05 mifi

I can't find a good exception stack example trivially, but Webpack and similar bundling systems allow for emitting multiple "chunks", each with individual source maps. These stack traces identify which browser resource (i.e. *.chunk.js) the line in question comes from.

agg23 avatar Jun 01 '20 18:06 agg23

I created a PR for this https://github.com/mifi/stacktracify/pull/5

askarby avatar Aug 21 '20 06:08 askarby