I am using Gulp to run build tasks, with the
gulpfile.js shown below (
require() statements removed for brevity, but I know I’m importing the correct modules). Everything is running swimmingly; there are no errors or warnings of any kind, and all files show up in the correct output folder. However, when I go to debug in Chrome, significant lines appear grayed out (see screenshot below), and I see very strange behavior when setting breakpoints (e.g., the breakpoint actually gets set on a later line). There is clearly some issue with my use of the
gulp-sourcemaps module, but I can’t figure out what. All I can figure is that maybe it is not compatible with one of the other modules, but I don’t know which one.
I hate to be that guy that says “solve my bug for me!” but for the life of me I can’t find a solution to this issue. All previous posts seem to deal with Gulp not generating any source map or other build time errors, and that’s not the case here. Any help will be very much appreciated!