From 5b7243d0398efbfea04f3134ef5b15d17a80f7dc Mon Sep 17 00:00:00 2001 From: Dan Bucholtz Date: Mon, 13 Feb 2017 12:42:27 -0600 Subject: [PATCH] refactor(build): fix compile error fix compile error --- src/util/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/config.ts b/src/util/config.ts index 2d03b596..3ffc8d9c 100644 --- a/src/util/config.ts +++ b/src/util/config.ts @@ -251,7 +251,7 @@ export function generateContext(context?: BuildContext): BuildContext { // default stand-alone builds to default to es5 // if closure is being used, don't worry about this as it already automatically converts to ES5 - const buildToEs5 = getConfigValue(context, '--buildToEs5', null, Constants.ENV_BUILD_TO_ES5, Constants.ENV_BUILD_TO_ES5.toLowerCase(), closureEnabled ? null : 'true'); + const buildToEs5 = getConfigValue(context, '--buildToEs5', null, Constants.ENV_BUILD_TO_ES5, Constants.ENV_BUILD_TO_ES5.toLowerCase(), useExperimentalClosure ? null : 'true'); setProcessEnvVar(Constants.ENV_BUILD_TO_ES5, buildToEs5); Logger.debug(`buildToEs5 set to ${buildToEs5}`);