We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a53347e commit c55090bCopy full SHA for c55090b
lib/web/mage/requirejs/resolver.js
@@ -34,7 +34,14 @@ define([
34
* @returns {Boolean}
35
*/
36
function isPending(module) {
37
- return !!module.depCount;
+ if (!module.depCount) {
38
+ return false;
39
+ }
40
+
41
+ // Return `true` if some dependency doesn't errored yet
42
+ return _.some(module.depMaps, function (dependency) {
43
+ return !registry[dependency.id].error;
44
+ });
45
}
46
47
/**
0 commit comments