The idea is to add a define constraint like UNITY_EDITOR || RUNTIME_INSPECTOR. This way the package will work on editor and will only be included on builds with RUNTIME_INSPECTOR defined, presumably debug builds.
This is probably a major-breaking change, but in my case i would love to have it