diff --git a/tools/tsconfig.base.json b/tools/tsconfig.base.json index 14ee9e8eac..1764ab4c6c 100644 --- a/tools/tsconfig.base.json +++ b/tools/tsconfig.base.json @@ -22,6 +22,9 @@ // Do not load globals from node_modules by default "types": [], + // Preserve const enums with tsc (esbuild does this by default) + "preserveConstEnums": true, + // Emit source/declaration maps to align the behavior of esbuild setup. "sourceMap": true, "declarationMap": true,