UHT cant handle #if WITH_EDITOR

I’m getting this exact same error in 4.18.1.

Generated files are referencing variables enclosed by WITH_EDITOR ifdefs in non-editor builds