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

Commit

Permalink
fix(config): revert change and once again transpile bundle by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
danbucholtz committed Apr 6, 2017
1 parent 02b8e97 commit b558584
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/util/config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ describe('config', () => {
expect(fakeConfig[Constants.ENV_EXPERIMENTAL_MANUAL_TREESHAKING]).toBeFalsy();
expect(fakeConfig[Constants.ENV_USE_EXPERIMENTAL_CLOSURE]).toBeFalsy();
expect(fakeConfig[Constants.ENV_USE_EXPERIMENTAL_BABILI]).toBeFalsy();
expect(fakeConfig[Constants.ENV_BUILD_TO_ES5]).toBeFalsy();
expect(fakeConfig[Constants.ENV_BUILD_TO_ES5]).toEqual('true');
expect(context.bundler).toEqual('webpack');
});

Expand Down
2 changes: 1 addition & 1 deletion src/util/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,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(), null);
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}`);

Expand Down

0 comments on commit b558584

Please sign in to comment.