Transform.eulerAngles breaks root motion

Is there any way to rotate/add rotation via script without breaking root motion?

My script uses (eg:) transform.eulerangles = angle.

You can create a MonoBehaviour and override the function OnAnimatorMove() to completely take control of the root motion.