When using Haze smoke bomb or shadow weave melee breaks invisibility.
When the melee is started during a dash or a slide it does not break invisibility.
It is easier to do with heavy melee since you can start holding it during but it can also be done with light melee attacks.