enable prod for angular in prod builds (#695)

This commit is contained in:
Anthony Dresser
2018-02-15 12:20:51 -08:00
committed by GitHub
parent b61fbc806b
commit d1cc937f9d

View File

@@ -3,7 +3,7 @@
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { NgModuleRef } from '@angular/core';
import { NgModuleRef, enableProdMode } from '@angular/core';
import { platformBrowserDynamic, } from '@angular/platform-browser-dynamic';
import { BootstrapParams } from 'sql/services/bootstrap/bootstrapParams';
@@ -180,3 +180,7 @@ export class BootstrapService implements IBootstrapService {
this._selectorQueueMap.set(selectorString, idArray);
}
}
if (!process.env['VSCODE_DEV']) {
enableProdMode();
}