fix(compiler-cli): disable checkTypes in emit. (#20828)
Closure Compiler by default will report diagnostics from type checks in any JavaScript code, including code emitted by the Angular compiler. Disabling `checkTypes` substantially reduces warning spam for users, and allows them to run with stricter compiler flags (e.g. treating actual diagnostics from user code as errors). Closure Compiler will still type check the code and use types (where found and correct) for optimizations. PR Close #20828
This commit is contained in:
parent
ef534c0cc1
commit
4efc32dabf
|
@ -13,9 +13,9 @@ import {TypeScriptNodeEmitter} from './node_emitter';
|
|||
import {GENERATED_FILES} from './util';
|
||||
|
||||
const PREAMBLE = `/**
|
||||
* @fileoverview This file is generated by the Angular template compiler.
|
||||
* @fileoverview This file was generated by the Angular template compiler.
|
||||
* Do not edit.
|
||||
* @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride}
|
||||
* @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
|
||||
* tslint:disable
|
||||
*/`;
|
||||
|
||||
|
|
Loading…
Reference in New Issue