Hi Nikita, How would you find these externs in JAR files? Would you scan all entries for them? This takes a really long time.
This is actually what boot v1 does, and it's not really workable for large projects with a lot of dependencies (this can be hundreds of thousands of JAR entries to sift through). In boot v2 we namespaced them so we can very efficiently prune the JARs that don't have JS includes or externs, and the JARs that do typically won't have a lot of entries. -- Micha Niskin On Sat, Nov 15, 2014 at 11:14 AM, Nikita Prokopov <[email protected]> wrote: > Agree that should be on compiler level. Relying to third-party solution > does not improve situation: without them, I have a possibility to forget to > include externs, with third-party solutions I have a possibility to forget > to include them (also library author will have to choose whose convention > to support). > > My proposal: > > Cljs-compiler should just include every 'externs.js' file it can found on > the classpath on top level. > > Library authors: just include externs.js to the jar at top level > > Library consumers: just add dependency (as you normally do) and it’ll put > externs.js to the classpath where it could be seen by compiler. > > Any thoughts? Who can make such a decision? I can work on an > implementation. > > -- > 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/LtFMDxc5D00/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 http://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 http://groups.google.com/group/clojurescript.
