Re: [ClojureScript] :preamble with modular compilation

2016-10-30 Thread David Nolen
:preamble is just for prepending copyright / licenses etc. Nothing more.
Using it to add code is not recommended and not something we intend to
support.

David

On Fri, Oct 28, 2016 at 7:07 PM, Matthew Chadwick 
wrote:

> any idea why :preamble doesnt seem to work with modular compilation ? I
> want to prepend importScripts() to the start of my generated js, but only
> for one module (a webworker)
>
> --
> 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 clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescript@googlegroups.com.
> Visit this group at https://groups.google.com/group/clojurescript.
>

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


[ClojureScript] :preamble with modular compilation

2016-10-30 Thread Matthew Chadwick
any idea why :preamble doesnt seem to work with modular compilation ? I want to 
prepend importScripts() to the start of my generated js, but only for one 
module (a webworker)

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.


Re: [ClojureScript] Re: ANN: ClojureScript 0.0-2913, Google Closure Modules, improved nREPL support

2016-10-30 Thread Matthew Chadwick
On Tuesday, February 24, 2015 at 12:37:46 PM UTC, David Nolen wrote:
> :preamble will only be applied to the base module. When using :modules there 
> is not such thing as a main output file.
> 
> 
> You cannot currently have a per module :preamble.
> 

I recently wanted per-module :preamble when playing with webworkers, in order 
to add the importScripts(); line -- is there any other way to get that line 
into a module ?

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.