G
G
g00dv1n2017-03-23 12:37:17
JavaScript
g00dv1n, 2017-03-23 12:37:17

How to output stacktrace based on source map?

The problem is this. I am using https://github.com/vuejs-templates/webpack for the project.
I want to make a convenient error logger.
Vue has this option - https://ru.vuejs.org/v2/api/#errorHandler
In essence, this is a global hook for errors. Here in it I want to log everything.
But the stacktrace shows errors based on the collected file by webpack + babel, but still ..
Source maps are all there. devtool: '#cheap-module-eval-source-map'
Is it possible to make the stack trace show given the source map?
It looks like sentry does something like this:
https://blog.sentry.io/2015/10/29/debuggable-javas...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question