Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1365 from danielsogl/patch-6
Browse files Browse the repository at this point in the history
fix(2889): fix build error with --prod
  • Loading branch information
imhoffd authored Apr 2, 2018
2 parents 09bd434 + 94e5f7c commit 718d2fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logger/logger-typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function loadDiagnostic(context: BuildContext, tsDiagnostic: ts.Diagnostic) {
lines: []
};

if (tsDiagnostic.file) {
if (tsDiagnostic.file && tsDiagnostic.file.getText) {
d.absFileName = tsDiagnostic.file.fileName;
d.relFileName = Logger.formatFileName(context.rootDir, d.absFileName);

Expand Down

0 comments on commit 718d2fc

Please sign in to comment.