Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify global exports values can employ dots #314

Open
mfikes opened this issue May 15, 2019 · 1 comment
Open

Clarify global exports values can employ dots #314

mfikes opened this issue May 15, 2019 · 1 comment
Labels

Comments

@mfikes
Copy link
Member

mfikes commented May 15, 2019

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.

@swannodette
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants