News for hackers. Stuff that matters.
Re:Grunt and RequireJS are out, it's all about Gulp and Brow... by indolering on Monday February 03, 2014 @02:23AM (#7169305)
Unable to find the link/name at the moment but there is a method (it isn't vanilla source-map) for this which basically wraps the modules into self-executing functions and it shows up in Firefox and Chrome as distinct files. It was related to source-map but not

However, I have found Chrome and Firefox's support to be buggy.

Re:Grunt and RequireJS are out, it's all about Gulp and Brow... by pyre on Monday February 03, 2014 @09:23AM (#7170717)
Maybe you're thinking of webmake. The sourceURL lines that it uses in the eval() sections resolve correctly on Chrome, but Firefox+Firebug don't seem to work for me.

The webmake site references a bug in Firebug that was resolved ~1 year ago, but I still have issues it with. I end up swapping back and forth between Firefox+Firebug and Chrome to get all of the debugging features that I want.

Re:Grunt and RequireJS are out, it's all about Gulp and Brow... by WickyNilliams on Monday February 03, 2014 @07:58AM (#7170368)
sourceURL? You can even do it with functions in the console:

   function hello() { 
      console.log("hello world");
      //# sourceURL=hello.js
   }
This will then appears in the sources panel under the name "hello.js". Which is great for debugging little scripts you're putting together in the console as you can set breakpoints, watches etc