-
|
Hi, We've discovered that, when we try to use the V8 Here's a minimal reproducible example: https://github.com/mattwynne/stacktrace-test I'm not clear whether this |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
We install I believe that the |
Beta Was this translation helpful? Give feedback.
We install
@cspotcode/source-map-supportat startup, which implements its ownError.prepareStackTraceto rewrite the stack trace strings, apply sourcemaps. I'm guessing that, when you replace our hook with your own, you're losing the benefit of these mappings.I believe that the
wrapCallSiteexport of@cspotcode/source-map-supportis what you want to use. If I recall correctly, it is used to modify each callsite object, applying sourcemaps. So you can use it to get accurate, source-mapped callsites.