clojurescript-site icon indicating copy to clipboard operation
clojurescript-site copied to clipboard

Clarify global exports values can employ dots

Open mfikes opened this issue 6 years ago • 1 comments

See https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/compiler.cljc#L1236-L1247

This implies that if you have something in the global scope, but want to associate a sub-object with the synthetic foreign lib namespace, you can use dots to do so. (The value need not simply name a global variable.)

Some verbiage in the :global-exports explanation at https://clojurescript.org/reference/compiler-options#foreign-libs could be added, clarifying that this is the way things work.

mfikes avatar May 15 '19 17:05 mfikes

Another issue where need is now significantly lower due to :target :bundle.

swannodette avatar Apr 12 '20 16:04 swannodette