ECMAScript:Harmony / ES6 to JavaScript compiler

后端 未结 8 954
隐瞒了意图╮
隐瞒了意图╮ 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).

提交回复
热议问题