Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 5b7243d

Browse files
committed
refactor(build): fix compile error
fix compile error
1 parent dfb9ec5 commit 5b7243d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export function generateContext(context?: BuildContext): BuildContext {
251251

252252
// default stand-alone builds to default to es5
253253
// if closure is being used, don't worry about this as it already automatically converts to ES5
254-
const buildToEs5 = getConfigValue(context, '--buildToEs5', null, Constants.ENV_BUILD_TO_ES5, Constants.ENV_BUILD_TO_ES5.toLowerCase(), closureEnabled ? null : 'true');
254+
const buildToEs5 = getConfigValue(context, '--buildToEs5', null, Constants.ENV_BUILD_TO_ES5, Constants.ENV_BUILD_TO_ES5.toLowerCase(), useExperimentalClosure ? null : 'true');
255255
setProcessEnvVar(Constants.ENV_BUILD_TO_ES5, buildToEs5);
256256
Logger.debug(`buildToEs5 set to ${buildToEs5}`);
257257

0 commit comments

Comments
 (0)