<p dir="ltr">I think ES6 is broadly implemented in browsers (even edge) so it wouldn't make sense to complicate the dev workflow without an obvious gain.</p>
<br><div class="gmail_quote"><div dir="ltr">El jue., 3 de ago. de 2017 8:24 PM, Jesse <<a href="mailto:pianohacker@gmail.com">pianohacker@gmail.com</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>As part of my work with Preact (and previous work with React), I've been unsure what to do about these libraries' enthusiasm for ES6.<br><br></div>If you're not familiar, ES6 (or ES2015) is a recent, major update to the JavaScript standard, and brings in a number of improvements to the language. Many of these make small parts of JS development a bit more pleasant, but the most relevant addition is native class support.<br><br>These built-in classes have been embraced by a lot of modern JS libraries, including Preact. The commonly accepted way to write code in this libraries depends on support for classes, either from the browser itself or a transpiler like Babel. To use Preact, we have two options:<br><br></div>  * Use ES6 classes. This will work in Firefox 45+ (which includes two ESR releases), Chrome 42+, Edge and Safari 9 [1][2]. I believe this is a very reasonable set of browsers, for the staff client.<br></div>  * Use a shim for ES3 support (see [3] for an example of how this might work). This can be done, but locks us to an older and less-used way of developing on Preact/React.<br><br></div>I strongly prefer the first option, but would like your feedback.<br><div><br>[1] <a href="http://kangax.github.io/compat-table/es6/#test-class" target="_blank">http://kangax.github.io/compat-table/es6/#test-class</a> (Check "show obsolete platforms", and get ready for your browser to slow down.)<br>[2] <a href="http://caniuse.com/#feat=es6-class" target="_blank">http://caniuse.com/#feat=es6-class</a> (This is pessimistic; FF has had support since version 45.)<br>[3] <a href="https://github.com/developit/preact-in-es3/blob/master/index.js" target="_blank">https://github.com/developit/preact-in-es3/blob/master/index.js</a><br><div><br clear="all"><div><div><div><br>-- <br><div class="m_-6117832679233197518gmail_signature">Jesse Weaver</div>
</div></div></div></div></div></div>
_______________________________________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-community.org</a><br>
<a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
website : <a href="http://www.koha-community.org/" rel="noreferrer" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" rel="noreferrer" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer" target="_blank">http://bugs.koha-community.org/</a></blockquote></div><div dir="ltr">-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div style="color:rgb(117,117,117);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:12.8px">Tomás Cohen Arazi</div><div style="color:rgb(117,117,117);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:12.8px">Theke Solutions (<a href="http://theke.io/">https://theke.io</a>)<br>✆ +54 9351 3513384<br>GPG: B2F3C15F</div></div></div>