ES2015 Compilation With Babel

Now that you’re a bit more comfortable with the concept of loaders, let’s figure out how to write our JavaScript in ES2015, and then apply a babel-loader to compile everything down to vanilla JavaScript that any browser can understand.
Source: Laracasts