Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

ES6, spread operator and Grav

Started by Pavel 7 years ago · 0 replies · 536 views
7 years ago

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?

Suggested topics

Topic Participants Replies Views Activity
General · by Andy Miller, 6 days ago
0 110 6 days ago
General · by lynbor, 1 month ago
3 438 2 weeks ago
General · by lynbor, 3 weeks ago
7 561 2 weeks ago
General · by Harry, 2 weeks ago
0 161 2 weeks ago
General · by Old Man Umby, 1 month ago
2 309 3 weeks ago