* Checks whether this module graph is deferred. * @param {Module} module the module * @returns {boolean} true, if the module is used as a deferred module at least once
(module)
| 910 | * @returns {boolean} true, if the module is used as a deferred module at least once |
| 911 | */ |
| 912 | isDeferred(module) { |
| 913 | if (this.isAsync(module)) return false; |
| 914 | const connections = this.getIncomingConnections(module); |
| 915 | for (const connection of connections) { |
| 916 | if ( |
| 917 | !connection.dependency || |
| 918 | !(connection.dependency instanceof HarmonyImportDependency) |
| 919 | ) { |
| 920 | continue; |
| 921 | } |
| 922 | if (ImportPhaseUtils.isDefer(connection.dependency.phase)) return true; |
| 923 | } |
| 924 | return false; |
| 925 | } |
| 926 | |
| 927 | /** |
| 928 | * Updates async using the provided module. |
no test coverage detected