Giter Club home page Giter Club logo

Comments (7)

sokra avatar sokra commented on April 20, 2024

a while ago this did work in chrome (i'm using it too) but some change in chrome changed it...
Should be fixed now again...

You need to check "Show script folders" in chrome dev tool settings (bottom right corner).

from webpack.

jhnns avatar jhnns commented on April 20, 2024

Now it's working, thanks. I've checked the "Show script folders" already. But I was annoyed that the folders also start with the full absolute path.

from webpack.

jhnns avatar jhnns commented on April 20, 2024

Compare these two paths from browserify and webpack:

/test/simpleTest/simpleTest.test.js:34
webpack-module:///home/jhnns/node/nodeclass/test/simpleTest/simpleTest.test.js:33

The first path provides a much nicer debug experience (e.g. in stack traces, etc.) since it omits the uninteresting parts.

from webpack.

sokra avatar sokra commented on April 20, 2024

sourceUrl is shortened the way stats was processed.

./ project directory
../ parent of project directory
~ = node_modules

from webpack.

jhnns avatar jhnns commented on April 20, 2024

Looks good. But if I'm using a loader, such as bundle, the loader-path is prepended. For instance:

webpack-module:///(webpack)/~/bundle-loader/lazy.js!./pages/Blog/BlogPage.class.js

Is this intended? I don't think that the loader is important for the debug view.

from webpack.

sokra avatar sokra commented on April 20, 2024

It's intended and importent. The bundle loader is a good example.

If you use the bundle loader you have 2 modules included

webpack-module:///(webpack)/~/bundle-loader/lazy.js!./pages/Blog/BlogPage.class.js
webpack-module:///./pages/Blog/BlogPage.class.js

If we would not prepend the loader the module names are not unique and would collide.

from webpack.

jhnns avatar jhnns commented on April 20, 2024

Sounds reasonable.

from webpack.

Related Issues (20)

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.