question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It’s 2019, and ES2015+ features supports is getting better among modern browsers. Several patches from #2 already using some (mostly let/const).

So it would be great if we decide which of the features are ‘safe’ to use in whole project. But to select particular features we need to consider target platforms of IITC, as some of them could be limited.

Perhaps most universal approach would be to:

  • Include some transpilling tool in our build chain.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
modos189commented, Jan 6, 2019

Babel requires a node.js, which I would like to avoid.

I found a project that implements the Javascript interpreter on Python. As stated, he is not production ready, but it works.

And if there were no problems with connecting DukPy, I would prefer to choose TypeScript, not Babel. Because he too implements the capabilities of the new ES, but it also supports types.

0reactions
johnd0ecommented, Mar 25, 2021

One more question: JS Promise vs jQuery.Deferred().

Promise is not part of ES5, that’s why we begin to use jQuery.Deferred (https://github.com/iitc-project/ingress-intel-total-conversion/pull/1163).

But refactoring of game_status.js/map_data_request.js/redeeming.js/request_handling.js/search.js/send_request.js/… will demand more extensive promises using, so we should decide whether to stick to jQuery’s implementation, or switch to native JS’s.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Learn ES2015 - Babel.js
ES2015 classes are syntactic sugar over the prototype-based OO pattern. Having a single convenient declarative form makes class patterns easier to use, and ......
Read more >
ES2015 | Web - Google Developers
ES2015 (formally ES6) is a fantastic step forward for the JavaScript language. It brings new features and sugaring for patterns that ...
Read more >
ECMAScript 2015 Language Specification – ECMA-262 6th ...
Ecma International. Rue du Rhone 114. CH-1204 Geneva. Tel: +41 22 849 6000. Fax: +41 22 849 6001. Web: http://www.ecma-international.org. COPYRIGHT NOTICE.
Read more >
ECMAScript - Wikipedia
ECMAScript is a JavaScript standard intended to ensure the interoperability of web pages ... Since ES 2015, transpiling JavaScript has become very common....
Read more >
ES6 Tutorial
ECMAScript 2015 or ES2015 is a significant update to the JavaScript programming language. It is the first major update to the language since...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found