Thomas Heller's comment does explain the problem.

You can define an _empty_ common module whose only purpose is to collect
shared stuff that you don't want falling into base. If you don't specify
:depends-on we don't know where to move entries. So the tradeoff is that
you specify `:depends-on` but as a result we can produce very optimal
splits.

There's no intention to change how this works. You must supply
`:depends-on`.

On Sat, Feb 24, 2018 at 4:58 PM, Khalid Jebbari <[email protected]>
wrote:

> Is it true to say that the dependency on :cljs-base is handled by the
> compiler ? It seems so when I look at the code generated in :none mode.
>
> I'd love to understand why it's not possible between modules.
>
> Le 24 févr. 2018 21:09, "David Nolen" <[email protected]> a écrit :
>
>> You must specify :depends-on - the compiler will not do this for you.
>>
>> David
>>
>> On Fri, Feb 23, 2018 at 1:06 PM, Khalid Jebbari <[email protected]
>> > wrote:
>>
>>> Hello,
>>>
>>> Say I have 2 namespaces in CLJS/CLJC, A and B. A requires B explicitly.
>>>
>>> I want to produce a js file for each namespace, A.js and B.js. So I use
>>> the code-splitting feature, and create a dedicated module entry for each
>>> namespace, :A and :B.
>>>
>>> What's exactly the difference between specifying that module :A
>>> ":depends-on" :B and not specifying it ? Surely the compiler can understand
>>> the dependence by just analyzing the requires in code.
>>>
>>> --
>>> 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 a topic in the
>> Google Groups "ClojureScript" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/clojurescript/0s2xiicjm8U/unsubscribe.
>> To unsubscribe from this group and all its topics, 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.
>

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

Reply via email to