From f4da50d3501748c6e694e65b276126dc03c6d6a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Mon, 20 Dec 2021 16:30:32 +0100 Subject: [PATCH] [REF] build: do not output const enum definitions We only use 2 const enums in the codebase, but they are defined in the output, even though this is not useful in any way. This commit reduces the final output by about 30 loc. --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index be2ede4a..4092bef3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -82,7 +82,7 @@ // "noEmitOnError": false,                 // Do not emit outputs if any errors were reported. // "noImplicitUseStrict": false,                 // Do not emit "use strict" directives in module output. // "noResolve": false,                 // Do not add triple-slash references or module import targets to the list of compiled files. - "preserveConstEnums": true,                                 // Do not erase const enum declarations in generated code. + "preserveConstEnums": false,                                 // Do not erase const enum declarations in generated code. // "removeComments": false,                 // Remove all comments except copy-right header comments beginning with // "experimentalDecorators": true,                 // Enables experimental support for ES7 decorators. // "emitDecoratorMetadata": true,                 // Enables experimental support for emitting type metadata for decorators.