3

When I use vanilla CoffeeScript, I compile a *.coffee files and send resulted *.js to client. To get rid of dependence on the module async.js in client side, I found the IcedCoffeeScript language extension. But when I compiled my code (wich has await and defer keywords) into *.js, in result I found non-client-side code:

iced = require('iced-coffee-script').iced; 

So I can't use it in client side. Could to solving this problem?

asked Nov 15, 2013 at 11:06

2 Answers 2

1

You need to set the --runtime flag on iced compiler to "inline". http://maxtaco.github.io/coffee-script/

answered Feb 28, 2014 at 13:46
0

I use the following gist successfully in production with version 1.6.3-g

https://gist.github.com/littleloops/7546859

answered Nov 19, 2013 at 15:18
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.