If you feel like trying another build tool you could try shadow-build [1]. It has built-in support for web-workers, well it injects the importScripts for you since that is all you need really. You also get modules for :none which makes development easier. ;)
Docs are terrible though so be warned. /thomas @thheller on slack if you have questions. [1] https://github.com/thheller/shadow-build On Monday, October 31, 2016 at 3:47:53 PM UTC+1, Matthew Chadwick wrote: > what approach would you suggest then for prepending the importScripts() line > to generated webworker js code ? I would prefer to use Clojurescript to write > webworkers > > On Sunday, 30 October 2016 21:10:50 UTC, David Nolen wrote: > > :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 <[email protected]> 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 [email protected]. > > > > To post to this group, send email to [email protected]. > > > > 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/clojurescript.
