Ok, looks like I need to use :preamble for this.

On Friday, May 2, 2014 4:35:05 PM UTC+3, Alexander Semenov wrote:
> Hello.
> 
> Should foreign-libs compiler option work with externs? I'm trying to 
> incorporate i18next library into my project using advanced compilation mode 
> and it stop working when I switch to advanced from simple or whitespace. I 
> supply the externs file correctly but it has no effect.
> 
> In simple mode I call:
> 
> (.init js/i18n)
> 
> and it does work.
> 
> Having this externs file
> 
> var i18n = {};
> i18n.init = function() {};
> 
> when I switch to advanced mode I get 'i18n is not defined' error.
> 
> Am I doing something wrong?
> 
> Regards,
> Alexander.

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to