Exception stack traces do not lead to the thrown exception

When my code throws an exception like this:

I get similar stack trace:

Which leads only to a wrapper function handling logging of the exception. And when I add long stack traces (longjohn package) or sourcemaps (source-map-support package), the stack trace will be:

I guess it is specifics of the Lambda environment, or maybe of Webpack plugin we use. Would anyone know some nice solution to this problem?