Googlebot doesn’t understand ES6, what to do about it

When rendering the pages of our websites to index them, Googlebot can run JavaScript.

It cannot understand the latest ES6 additions though.

Using Babel we can compile ES6 JavaScript into ES5 one and let Googlebot see our pages.