Ember and ES2015 features


#1

Does Ember version 1.13 use ES2015 features OR have they started using ES2015 features from Ember v 2 onwards only ?

Also it would be great if you could point out some of the ES2015 features which Ember uses ?


#2

If you use ember-cli you get ES2015 features via babel with both 1.13 and 2.0.


#3

But does Ember v 1.13 use ES 2015 features ? If yes, which ?


#5

Oh you mean the library itself, I’m pretty sure it does since they’re using babel. As to which features specifically, I know I’ve seen import, {functionName(){}}, and fat arrow in my random poking around of ember source but they probably use more than that. I’m also pretty sure that these features have been in use in both 1.13 and 2.0. Keep in mind they don’t appear in the actual distributed js since they’re using babel to transpile.


#6

So babel kind of acts as polyfill for older browser suppport ?


#7

It’s more of a cutting edge JS -> browser compatible js compiler.


#8

So babel kind of acts as polyfill for older browser suppport ?

Sort of. It complies the JS to regular ES5/3 in a build step.