From 43a0ea8694f2937bd9c774758797f45c2be38d06 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Wed, 7 Sep 2016 16:18:14 -0700 Subject: [PATCH 1/2] Force source-map-support to not have source maps It fooled sorcery's incorrect check for sourceMappingURL into thinking it had a source map. Also up the error stack trace limit to 1000 to help future error reporting. --- Gulpfile.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Gulpfile.ts b/Gulpfile.ts index 295a7ce03d9..0f4b0e0c1ac 100644 --- a/Gulpfile.ts +++ b/Gulpfile.ts @@ -39,6 +39,8 @@ const gulp = helpMaker(originalGulp); const mochaParallel = require("./scripts/mocha-parallel.js"); const {runTestsInParallel} = mochaParallel; +Error.stackTraceLimit = 1000; + const cmdLineOptions = minimist(process.argv.slice(2), { boolean: ["debug", "light", "colors", "lint", "soft"], string: ["browser", "tests", "host", "reporter"], @@ -727,6 +729,7 @@ gulp.task("browserify", "Runs browserify on run.js to produce a file suitable fo sourcemaps: { "built/local/_stream_0.js": originalMap, "built/local/bundle.js": maps, + "node_modules/source-map-support/source-map-support.js": null, } }); const finalMap = chain.apply(); From 262a7f6eea52ff22568b77f651c26cf30cd0e383 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Thu, 8 Sep 2016 08:21:14 -0700 Subject: [PATCH 2/2] Use undefined, not null, to satisfy linter --- Gulpfile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gulpfile.ts b/Gulpfile.ts index 0f4b0e0c1ac..bff83fcbff6 100644 --- a/Gulpfile.ts +++ b/Gulpfile.ts @@ -729,7 +729,7 @@ gulp.task("browserify", "Runs browserify on run.js to produce a file suitable fo sourcemaps: { "built/local/_stream_0.js": originalMap, "built/local/bundle.js": maps, - "node_modules/source-map-support/source-map-support.js": null, + "node_modules/source-map-support/source-map-support.js": undefined, } }); const finalMap = chain.apply();