Commit 2be4035
committed
fix(@angular/build): skip semantic diagnostics for declaration files
Declaration files don't produce semantic or template diagnostics, so
calling getSemanticDiagnostics() on them was just wasted work. Move
the isDeclarationFile guard to before that call so .d.ts files are
skipped entirely.1 parent b44828c commit 2be4035
1 file changed
Lines changed: 5 additions & 5 deletions
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
268 | 273 | | |
269 | 274 | | |
270 | 275 | | |
271 | 276 | | |
272 | 277 | | |
273 | 278 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| |||
0 commit comments