Changed
"Type": "Development",
"LoadingPhase": "Default"
to
"Type": "Runtime",
"LoadingPhase": "PreDefault"
Had to also wrap some code elements with:
#if WITH_EDITORONLY_DATA
#endif
This was needed for editor specific code that’s not accessible in retail.