I am creating an Angular library - let's call it libA - that can use another Angular library - let's call it libB - for an optional feature, i.e., if the Angular application doesn't have the libB, the feature in the libA will be disabled. But, if the Angular app has the libB installed, the feature in libA will be available.
So, to implement this behavior, I'd have to make verifications in libA to check if libB is available. However, I'm having trouble verifying whether or not the libB is installed in the application.
Does anyone know how can I check if the libB is installed in the application inside libA?