Cleaner platform detection and hot code reloading