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

Commit

Permalink
fix(2889): fix build error with --prod
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsogl committed Jan 12, 2018
1 parent 9ab6200 commit 94e5f7c
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 94e5f7c

Please sign in to comment.