In an array with multiple animations is given as the value of the animationName attribute within a makeStyles call and the babel plugin optimizations are enabled, there is an error thrown at during build at the babel:postprocess stage indicating that ruleValue.indexOf is not a function:


In an array with multiple animations is given as the value of the
animationNameattribute within amakeStylescall and the babel plugin optimizations are enabled, there is an error thrown at during build at thebabel:postprocessstage indicating thatruleValue.indexOf is not a function: