Skip to content

Commit 5f74af0

Browse files
committed
fix(compiler-cli): disable checkTypes in emit.
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.
1 parent 6911a25 commit 5f74af0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/compiler-cli/src/transformers/node_emitter_transform.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import {TypeScriptNodeEmitter} from './node_emitter';
1313
import {GENERATED_FILES} from './util';
1414

1515
const PREAMBLE = `/**
16-
* @fileoverview This file is generated by the Angular template compiler.
16+
* @fileoverview This file was generated by the Angular template compiler.
1717
* Do not edit.
18-
* @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride}
18+
* @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
1919
* tslint:disable
2020
*/`;
2121

0 commit comments

Comments
 (0)