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:
Martin Probst 2017-12-06 14:35:54 +01:00 committed by Jason Aden
parent ef534c0cc1
commit 4efc32dabf
1 changed files with 2 additions and 2 deletions

View File

@ -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
*/`;