ToggleSwitch from Phaser3 Rex Plugins Removed the use of instaceof so this works with vite production builds. This was mainly done for my personal use but I thought I'd share it in case anyone else needs it.