browserify source map not working if require underscore
问题 I use browserify for my angular client app. I need to use underscore. angular is installed with bower and underscore is installed with npm This is how I run browserify (npm) and create source map in gulp (npm) gulp.task('browserify', function() { return browserify(dir.script_from + '/main.js', {debug: true}) .bundle() .pipe(source('bundle.js')) // gives streaming vinyl file object .pipe(buffer()) // <----- convert from streaming to buffered vinyl file object .pipe(sourcemaps.init({loadMaps: