|
|
|
@ -130,10 +130,9 @@ export class Compiler { |
|
|
|
|
|
|
|
|
|
onCompilationFinished (data: CompilationResult, missingInputs?: string[], source?: SourceWithTarget): void { |
|
|
|
|
let noFatalErrors = true // ie warnings are ok
|
|
|
|
|
|
|
|
|
|
const checkIfFatalError = (error: CompilationError) => { |
|
|
|
|
// Ignore warnings and the 'Deferred import' error as those are generated by us as a workaround
|
|
|
|
|
const isValidError = (error.message && error.message=== 'Deferred import') ? false : error.severity !== 'warning' |
|
|
|
|
const isValidError = (error.message && error.message.includes('Deferred import')) ? false : error.severity !== 'warning' |
|
|
|
|
if(isValidError) noFatalErrors = false |
|
|
|
|
} |
|
|
|
|
if (data.error) checkIfFatalError(data.error) |
|
|
|
|