2021腾讯云限时秒杀,爆款1核2G云服务器298元/3年!(领取2860元代金券),
地址:https://cloud.tencent.com/act/cps/redirect?redirect=1062
2021阿里云最低价产品入口+领取代金券(老用户3折起),
入口地址:https://www.aliyun.com/minisite/goods
up vote 0 down vote favorite 1
I'd like to compile ES6 at runtime during development of an angularjs app. I can run traceur before http-server starts up but this is tedious during development.
How do I set this up?
PS: I'm not using grunt at this stage. I think I might need to.
traceur share | improve this question edited Feb 13 '15 at 10:33 Bergi 247k 24 291 433 asked Nov 28 '14 at 3:34 Rimian 15.8k 6 75 84 add a comment |1 Answer 1
active oldest votes up vote 1 down voteI ended up using traceur.require, NodeApi , and [mocha-traceur] https://github.com/tucksen/mocha-traceur) on node side, haven't tried on the browser yet. browserify should work or simply set compiler options to AMD?.
Have a look at SystemJS and ES6ModuleLoader, Also practical-workflows, very informative and inspiring
Maps support at traceur-source-maps Or the already packaged maps-support
A little bit out of topic... Another source of inpiration is ATScript playground , is transpiling , not on the fly
share | improve this answer answered Nov 28 '14 at 6:41 Dan 1,598 9 17 add a comment |Your Answer
draft saved draft discardedSign up or log in
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Name EmailPost as a guest
Name Email discardBy posting your answer, you agree to the privacy policy and terms of service.