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

Reply via email to