mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
b95b5b55d8
non-destructive hydration expects the DOM tree to have the same structure in both places. With this commit, the app will throw an error if comments are stripped out by the http server (eg by some CDNs). PR Close #51276
38 lines
1.2 KiB
JSON
38 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,
|
|
"esModuleInterop": true,
|
|
"strict": true,
|
|
"strictPropertyInitialization": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"moduleResolution": "node",
|
|
"module": "esnext",
|
|
"target": "es2022",
|
|
// Keep the below in sync with ng_module.bzl
|
|
"useDefineForClassFields": false,
|
|
"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
|
|
}
|
|
}
|