Skip to content

Commit

Permalink
Dedupe “output file has not been built from source file” diagnostic m…
Browse files Browse the repository at this point in the history
…essage
  • Loading branch information
andrewbranch committed May 18, 2019
1 parent ccf83e0 commit 69dc5e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/after-compile.ts
Expand Up @@ -208,7 +208,11 @@ function provideErrorsToWebpack(
if (program && sourceFile) {
errors.push(
...program!.getSyntacticDiagnostics(sourceFile),
...program!.getSemanticDiagnostics(sourceFile)
...program!
.getSemanticDiagnostics(sourceFile)
// Output file has not been built from source file - this message is redundant with
// program.getOptionsDiagnostics() separately added in instances.ts
.filter(({ code }) => code !== 6305)
);
}
if (errors.length > 0) {
Expand Down

0 comments on commit 69dc5e2

Please sign in to comment.