diff --git a/src/app/compiler.js b/src/app/compiler.js index 87407024db..6a02b4dab7 100644 --- a/src/app/compiler.js +++ b/src/app/compiler.js @@ -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; } });