Add source map support for error stack (Chrome only)
npm install stack-source-mapAttamp to make error stack works with source-map in browser, only Chrome supportted yet.
The code mostly from evanw/node-source-map-support, but simplified to works with browser only and fixed to support all source map mode of webpack
Basically, it's some kind hack of v8 message.js
Works with babel and webpack :smiley:
npm install stack-source-map
`` js`
require('stack-source-map')()
` js`
var entry = [
'stack-source-map/register'
// other entries
...
]
Include file stacksourmap.js in your page, and add one line code:
` js`
StackSourceMap()
* option.empty` empty cache between operations if true, default false
npm install
node server
open http://localhost:8080/bundle
MIT