I am distributing a managed package which includes a lightning app built with LWC. In my dev org I needed to enable My Domain to get it to work.
I've tested installing my package on an org without My Domain enabled and the lightning app does not load or show any type of error message, I suspect because My Domain is not enabled and the domain is a standard instance url (naxxx.salesforce.com).
Edit: confirmed by enabled my domain in target org and the lightning app works.
Is there a way to only allow orgs with my domain enabled to install the package?
if not, what is the best course of action to deal with orgs that do not have my domain enabled?