From 1ef004bf43d973baf6b5c27a02c349c95a780122 Mon Sep 17 00:00:00 2001 From: Vladimir Grichina Date: Thu, 18 Jul 2019 23:01:17 -0700 Subject: [PATCH] Reduce optimization level to -O1 to speed up builds --- gulp-utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gulp-utils.js b/gulp-utils.js index c6ecffe7..fb1c248a 100644 --- a/gulp-utils.js +++ b/gulp-utils.js @@ -13,7 +13,8 @@ function compile(inputFile, outputFile, callback) { const asc = getAsc(); asc.main([ inputFile, - "-O3", + // TODO: Optimiziation is very slow, enable it only conditionally for "prod" builds? + "-O1", "--baseDir", "assembly", "--binaryFile", outputFile, "--sourceMap",