|
|
|
@ -84,13 +84,15 @@ function Compiler (editor, queryParams, handleGithubCall, updateFiles) { |
|
|
|
|
var noFatalErrors = true; // ie warnings are ok
|
|
|
|
|
|
|
|
|
|
if (data['error'] !== undefined) { |
|
|
|
|
if (utils.errortype(data['error']) !== 'warning') { |
|
|
|
|
// Ignore warnings (and the 'Deferred import' error as those are generated by us as a workaround
|
|
|
|
|
if (utils.errortype(data['error']) !== 'warning' && /Deferred import/.exec(data['error']) === null) { |
|
|
|
|
noFatalErrors = false; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (data['errors'] !== undefined) { |
|
|
|
|
data['errors'].forEach(function (err) { |
|
|
|
|
if (utils.errortype(err) !== 'warning') { |
|
|
|
|
// Ignore warnings and the 'Deferred import' error as those are generated by us as a workaround
|
|
|
|
|
if (utils.errortype(err) !== 'warning' && /Deferred import/.exec(err) === null) { |
|
|
|
|
noFatalErrors = false; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|