InterviewHubPRO
Section Overview
Q91

Question 91 of 283

Part 4: JIT vs AOT Compilation, Metadata & TypeScript (76 - 100)

32%
Angular & Signals (283 Qs)•Part 4: JIT vs AOT Compilation, Metadata & TypeScript (76 - 100)

How do you provide configuration inheritance?

Angular Compiler supports configuration inheritance through extends in the tsconfig.json on angularCompilerOptions. i.e, The configuration from the base file(for example, tsconfig.base.json) are loaded first, then overridden by those in the inheriting config file.

javascript
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
 "experimentalDecorators": true,
 ...
},
"angularCompilerOptions": {
 "fullTemplateTypeCheck": true,
 "preserveWhitespaces": true,
 ...
}
}