From 4b2183927b601018c2dbf0c118fc166c690010f2 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Fri, 22 Jul 2016 13:56:50 -0700 Subject: [PATCH] Add src to absolute paths in browserify task --- Gulpfile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gulpfile.ts b/Gulpfile.ts index 57da2b62aa812..8797f6d2ee122 100644 --- a/Gulpfile.ts +++ b/Gulpfile.ts @@ -710,7 +710,7 @@ gulp.task("browserify", "Runs browserify on run.js to produce a file suitable fo const originalMap = file.sourceMap; const prebundledContent = file.contents.toString(); // Make paths absolute to help sorcery deal with all the terrible paths being thrown around - originalMap.sources = originalMap.sources.map(s => path.resolve(s)); + originalMap.sources = originalMap.sources.map(s => path.resolve("src", s)); // intoStream (below) makes browserify think the input file is named this, so this is what it puts in the sourcemap originalMap.file = "built/local/_stream_0.js";