Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Framework Blackboxing while using Webpack?

Is it possible to Blackbox certain parts of a WebPack bundle so that Chrome does not show the stack trace of Framework internals? For example, when examining an error on a React app, I don't care about stack trace entries inside of the framework, rather I just want to see the parts that relate to code I wrote.

This is possible with "Framework Blackboxing" when using single files, but I don't know how to accomplish it with a WebPack bundle.

like image 722
Rick Avatar asked Oct 20 '15 15:10

Rick


1 Answers

Using devtool: "#eval" in your Webpack config (or --devtool #eval on the command line) seems to support both black-boxing and proper stack traces.

like image 124
Ben Mosher Avatar answered Oct 18 '22 23:10

Ben Mosher