Skip to content

Commit 4b21839

Browse files
committed
Add src to absolute paths in browserify task
1 parent 046e9ea commit 4b21839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Gulpfile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ gulp.task("browserify", "Runs browserify on run.js to produce a file suitable fo
710710
const originalMap = file.sourceMap;
711711
const prebundledContent = file.contents.toString();
712712
// Make paths absolute to help sorcery deal with all the terrible paths being thrown around
713-
originalMap.sources = originalMap.sources.map(s => path.resolve(s));
713+
originalMap.sources = originalMap.sources.map(s => path.resolve("src", s));
714714
// intoStream (below) makes browserify think the input file is named this, so this is what it puts in the sourcemap
715715
originalMap.file = "built/local/_stream_0.js";
716716

0 commit comments

Comments
 (0)