ECMAScript2015 compatibility

As I understand it, the platform uses closure compiler to transpile code. And closure compiler officially supports ECMAScript 6 since 2015. But lightning-cli is configured to not allow version 6 or higher inside lightning components. Although, it is allowed to use it outside of component.

The question is:

Will we be allowed to use some ES2015 features at some point in the future?


It is possible to use some features of ECMAScript 6 in lightning components, here are some of the ones that I am aware of:

Documentation links for the aformentioned ES6 Features (if any):

Ideas for ES6 Features on the success community:

Unfortunately, there doesnt seem to be any official documentation on ES6 Supported features

Source : Link , Question Author : Mr Smith , Answer Author : glls

Leave a Comment