File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,16 @@ define([
37
37
return registry [ module . id ] && ( registry [ module . id ] . inited || registry [ module . id ] . error ) ;
38
38
}
39
39
40
+ /**
41
+ * Checks if provided module had path fallback triggered.
42
+ *
43
+ * @param {Object } module - Module to be checked.
44
+ * @return {Boolean }
45
+ */
46
+ function isPathFallback ( module ) {
47
+ return registry [ module . id ] && registry [ module . id ] . events . error ;
48
+ }
49
+
40
50
/**
41
51
* Checks if provided module has unresolved dependencies.
42
52
*
@@ -48,7 +58,8 @@ define([
48
58
return false ;
49
59
}
50
60
51
- return module . depCount > _ . filter ( module . depMaps , isRejected ) . length ;
61
+ return module . depCount >
62
+ _ . filter ( module . depMaps , isRejected ) . length + _ . filter ( module . depMaps , isPathFallback ) . length ;
52
63
}
53
64
54
65
/**
You can’t perform that action at this time.
0 commit comments