-
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-support
at startup, which implements its ownError.prepareStackTrace
to 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
wrapCallSite
export of@cspotcode/source-map-support
is 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.