Commit f00c8def authored by Alex Beregszaszi's avatar Alex Beregszaszi

Fix the bug with gather imports

parent e54949b3
...@@ -84,13 +84,15 @@ function Compiler (editor, queryParams, handleGithubCall, updateFiles) { ...@@ -84,13 +84,15 @@ function Compiler (editor, queryParams, handleGithubCall, updateFiles) {
var noFatalErrors = true; // ie warnings are ok var noFatalErrors = true; // ie warnings are ok
if (data['error'] !== undefined) { 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; noFatalErrors = false;
} }
} }
if (data['errors'] !== undefined) { if (data['errors'] !== undefined) {
data['errors'].forEach(function (err) { 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; noFatalErrors = false;
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment