ECMAScript:Harmony / ES6 to JavaScript compiler

后端 未结 8 895
隐瞒了意图╮
隐瞒了意图╮ 2020-12-12 13:37

After reading Peter\'s article on JavaScript I noticed

Brendan Eich stated that one the goals for Harmony is to be a better target for to-JavaScript c

相关标签:
8条回答
  • 2020-12-12 14:34

    As of the time of typing, we now have Babel. It integrates with many different build tools/systems, and will transpile ES6+ in order to support legacy browsers (it doesn't state which version it targets, but it does say that it targets IE9+).

    To install it type npm install babel -g.

    Note that it has rather a lot of dependencies and when installed it is ~23.4 MB (2888 files).

    0 讨论(0)
  • 2020-12-12 14:38

    There's also https://github.com/matthewrobb/six

    Six is a language super-set of JavaScript that enables new syntactic features from the 6th edition of ECMAScript to be used, through a transpiler, in your scripts today.

    WARNING: Still in a very early state, proceed with caution.

    0 讨论(0)
提交回复
热议问题