How to enable harmony in Coffeescript?

好久不见. 提交于 2019-12-07 02:29:00

问题


Here is how I run my js code:

node --harmony ./data/app.js

Now I want to move to the CoffeeScript. So I try to run it like that:

coffee ./data/app.coffee

And it fails. How can I pass this --harmony option?


回答1:


To pass args through, you can use the --nodejs argument:

coffee --nodejs --harmony ./data/app.coffee 


来源:https://stackoverflow.com/questions/13548196/how-to-enable-harmony-in-coffeescript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!