To add a bit more context about the original problem:

library A depends on library B.

library B in this case modifies the printer. A does not use any functions
from it.

That is the default setup, but some users will not want the printer
modified when using library A so I was hoping that they could exlcude it
from the dependencies and library A would not require it in that case.

Another approach that will work for me is having the user set a property,
similar to how you do with e.g. -Dclojure.spec.compile-asserts=false, but I
thought classpath exclusion might be good, if there was a way it could be
made to work.

On Tue, Feb 12, 2019 at 9:52 AM Yuri Govorushchenko <yuri.go...@gmail.com>
wrote:

> > That still does not allow you to do anything you couldn't do via the ns
> form directly. require outside ns is a misleading topic and is still
> completely static.
>
> I guess it's not a blocker for OP because the intention was to do a
> conditional require during compilation (and not during execution in
> browser)?
>
> Of course, I'm not sure what real root problem it solves, maybe there is a
> more idiomatic solution possible.
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "ClojureScript" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/clojurescript/cUbKSQ_bm0I/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>


-- 
@henryw374

-- 
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.

Reply via email to