From 2b4b629f9bfaad5275aed844491a1498efa9e3cd Mon Sep 17 00:00:00 2001 From: Andy Date: Wed, 30 Aug 2017 10:02:30 -0700 Subject: [PATCH] Remove `largeSource` argument to `convertMap.fromSource` (#18098) --- Gulpfile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gulpfile.ts b/Gulpfile.ts index 4a03557270f..a3db20dfd8a 100644 --- a/Gulpfile.ts +++ b/Gulpfile.ts @@ -786,7 +786,7 @@ gulp.task("browserify", "Runs browserify on run.js to produce a file suitable fo const file = new Vinyl({ contents, path: bundlePath }); console.log(`Fixing sourcemaps for ${file.path}`); // assumes contents is a Buffer, since that's what browserify yields - const maps = convertMap.fromSource(stringContent, /*largeSource*/ true).toObject(); + const maps = convertMap.fromSource(stringContent).toObject(); delete maps.sourceRoot; maps.sources = maps.sources.map(s => path.resolve(s === "_stream_0.js" ? "built/local/_stream_0.js" : s)); // Strip browserify's inline comments away (could probably just let sorcery do this, but then we couldn't fix the paths)