angular/packages/tsconfig-build.json
Alan Agius 7de7c52769 build: remove usages of useDefineForClassFields: false (#58297)
When setting `"useDefineForClassFields": false`, static fields are compiled within a block that relies on the `this` context. This output makes it more difficult for bundlers to treeshake and eliminate unused code.

PR Close #58297
2024-10-28 12:26:05 -07:00

37 lines
1.2 KiB
JSON

/**
* Root tsconfig file for use building all Angular packages. Note there is no rootDir
* and therefore any tsconfig in the package directory will need to define its own
* rootDir.
*/
{
"compilerOptions": {
"declaration": true,
"stripInternal": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"strictNullChecks": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": true,
"esModuleInterop": true,
"strict": true,
"strictPropertyInitialization": true,
"noFallthroughCasesInSwitch": true,
"moduleResolution": "node",
"module": "esnext",
"target": "es2022",
"lib": ["es2020", "dom", "dom.iterable"],
"skipLibCheck": true,
// don't auto-discover @types/node, it results in a ///<reference in the .d.ts output
"types": [],
"experimentalDecorators": true,
// This is needed due to https://github.com/Microsoft/TypeScript/issues/17516.
// As tsickle will lower decorators before TS, this is not a problem for our build.
"emitDecoratorMetadata": true,
"sourceMap": true,
"inlineSources": true,
"importHelpers": true
},
"bazelOptions": {
"suppressTsconfigOverrideWarnings": true
}
}