ES6, spread operator and Grav

I have own script with spread operator. It’s works perfectly out of Grav (pure JS/HTML site).
It’s not working on Grave site. Console.log(…node) return blank collection and ‘for of’ loop is not working too.
I added babel plugin but without any result. How enable ES6 in Grav completely?