Just FYI, if you are using https://obfuscator.io/ and the self defending option, the self defending option prevents the UXP JS file from running properly in the latest Photoshop 22.4.0 pre-release build. Using normal obfuscation works fine.
I know some people use this website to obfuscate the code so I just wanted to give people a heads up that you may need to change the obfuscation mode for JS file. Maybe it will work with the public 22.4.0 release, not sure. However, none of my plugins worked in the 22.4.0 pre-release using that option so I already modified all of mine.