Made webpack changes (#629)

This commit is contained in:
Srinath Narayanan 2021-04-07 16:10:26 -07:00 committed by GitHub
parent e20c9569e8
commit f060d4b1b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -177,7 +177,7 @@ export default class SqlX extends SelfServeBaseClass {
currentValues: Map<string, SmartUiInput>, currentValues: Map<string, SmartUiInput>,
baselineValues: Map<string, SmartUiInput> baselineValues: Map<string, SmartUiInput>
): Promise<OnSaveResult> => { ): Promise<OnSaveResult> => {
selfServeTrace({ selfServeClassName: this.constructor.name }); selfServeTrace({ selfServeClassName: SqlX.name });
const dedicatedGatewayCurrentlyEnabled = currentValues.get("enableDedicatedGateway")?.value as boolean; const dedicatedGatewayCurrentlyEnabled = currentValues.get("enableDedicatedGateway")?.value as boolean;
const dedicatedGatewayOriginallyEnabled = baselineValues.get("enableDedicatedGateway")?.value as boolean; const dedicatedGatewayOriginallyEnabled = baselineValues.get("enableDedicatedGateway")?.value as boolean;

View File

@ -220,7 +220,10 @@ module.exports = function (env = {}, argv = {}) {
terserOptions: { terserOptions: {
// These options increase our initial bundle size by ~5% but the builds are significantly faster and won't run out of memory // These options increase our initial bundle size by ~5% but the builds are significantly faster and won't run out of memory
compress: false, compress: false,
mangle: true, mangle: {
keep_fnames: true,
keep_classnames: true,
},
}, },
}), }),
], ],