On 5/28/15, 8:40 AM, "Frédéric THOMAS" <webdoubl...@hotmail.com> wrote:
>Oops, > >Hmm, so at this point, why not emiting ES6 syntax and use ES6 polyfills >from babel ? Possible. I’m willing to go in this direction if that’s what folks want to do, but I always get nervous when I hear about polyfills. I’d rather avoid polyfills and just stay on ES5 unless there is a huge win. That way you don’t have to: 1) figure out when to load the polyfill 2) worry about bugs in the polyfill 3) have different debug experiences in different browsers 4) bundle the polyfills in the release 5) manage the licenses and other documentation around the polyfills. Also, IIRC, way back, it seemed like many folks have locked into a favorite JS loading mechanism like RequireJS. We are using goog.require. Going to a different ES6 module scheme may cause more resistance from folks wedded to a particular loading scheme. But I’ll go with what the majority wants. -Alex