Since 4.18, all plugins are supposed to use IWYU. You can see how it works here: https://docs.unrealengine.com/latest/INT/Programming/UnrealBuildSystem/IWYUReferenceGuide/
It’s not enforced properly, so building from VS might still work without having it set, while attempting to package the plugin overrides it to be enabled.