The ResourceLoader targets system was deprecated in 1.41 in favor of extensions restricting where they load modules using specific loading strategies detailed here: https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_for_extension_developers
In 1.42, after one MediaWiki release, we should remove the system altogether.