Git Product home page Git Product logo

stack-source-map's Introduction

Stack-source-map

Attamp to make error stack works with source-map in browser, only Chrome supportted yet. screen shot 2015-11-24 at 00 23 59

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 😃

Install

npm install stack-source-map

Usage

require('stack-source-map')()

entry for webpack

var entry = [
  'stack-source-map/register'
  // other entries
  ...
]

Use standalond file

Include file stacksourmap.js in your page, and add one line code:

StackSourceMap()

API

stackSourceMap([option])

  • option.empty empty cache between operations if true, default false

Test babel with webpack

npm install
node server
open http://localhost:8080/bundle

License

MIT

stack-source-map's People

Contributors

chemzqm avatar greenkeeperio-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

stack-source-map's Issues

Clicking on urls opens a new tab

Hi!

First of all, this is awesome! I really needed this in my life!

Yet, when clicking on the URLs in the error, the browser just opens a new tab with a blank page. Maybe it's because they should be webpack://./src/index.js? (with the dot in the middle)? Am I doing something wrong?

screen shot 2017-03-17 at 11 49 16

screen shot 2017-03-17 at 11 51 08

Clicking on urls opens a new tab

stack

RT, i think the url should be webpack://helios-view\src\entry\biz-consume\pipeline\index.js.

i have try devtoolModuleFilenameTemplate: 'webpack://[absolute-resource-path]' but no use

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.