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

Commit b558584

Browse files
committed
fix(config): revert change and once again transpile bundle by default.
1 parent 02b8e97 commit b558584

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/util/config.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ describe('config', () => {
162162
expect(fakeConfig[Constants.ENV_EXPERIMENTAL_MANUAL_TREESHAKING]).toBeFalsy();
163163
expect(fakeConfig[Constants.ENV_USE_EXPERIMENTAL_CLOSURE]).toBeFalsy();
164164
expect(fakeConfig[Constants.ENV_USE_EXPERIMENTAL_BABILI]).toBeFalsy();
165-
expect(fakeConfig[Constants.ENV_BUILD_TO_ES5]).toBeFalsy();
165+
expect(fakeConfig[Constants.ENV_BUILD_TO_ES5]).toEqual('true');
166166
expect(context.bundler).toEqual('webpack');
167167
});
168168

src/util/config.ts

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

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

0 commit comments

Comments
 (0)