christianalfoni / webpack-bin

A webpack code sandbox
http://www.webpackbin.com
MIT License
710 stars 75 forks source link

Please provide stack trace of exceptions #155

Open narg95 opened 8 years ago

narg95 commented 8 years ago

Hi,

I am using your product and I find that it will be great if you may add the stack trace of the exception with the file name and line where the error happened.

Thanks, Nestor image

christianalfoni commented 8 years ago

This can not actually be done. The reason is that the code running is not the actual code, it is built by webpack. So the error thrown in the code (which is what is being displayed on top there) does not have access to sourcemaps that maps built code to actual code. Which means it has no idea where the error happened. In your console, which supports sourcemaps, you get the stack trace :)