Contact us at [email protected]
Implied dependencies can be created by the requires transitive directive. This is illustrated in Figure 19.6. If it is the case that all modules that require seller will also require factory, we can omit the requires directive on factory in client and use a requires transitive directive in seller. In Figure 19.6, client no longer requires factory, but seller specifies factory in a requires transitive directive. All changes are confined to the module declarations in Figure 19.6(d) and (e), so no other changes are required in the code. Implications of using a requires transitive directive are that any module that requires seller now will also implicitly require factory. This implied dependency is shown from client to factory in the module graph in Figure 19.6.