Skip to content

Commit 19517ac

Browse files
Emit, even in the presence of declaration errors and noEmitOnError.
We're reverting to the previous behavior we had until there is more consensus on the best way to deal with this issue.
1 parent fcd1e1f commit 19517ac

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/compiler/program.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,6 @@ module ts {
8787

8888
export function getPreEmitDiagnostics(program: Program): Diagnostic[] {
8989
let diagnostics = program.getSyntacticDiagnostics().concat(program.getGlobalDiagnostics()).concat(program.getSemanticDiagnostics());
90-
91-
if (program.getCompilerOptions().declaration) {
92-
diagnostics.concat(program.getDeclarationDiagnostics());
93-
}
94-
9590
return sortAndDeduplicateDiagnostics(diagnostics);
9691
}
9792

0 commit comments

Comments
 (0)