We're updating the issue view to help you get more done. 

:global-exports for foreign libraries

Description

To make foreign libraries more idiomatic to use and in order to ease future migration to direct node_modules usage users need a way to define what global exports a foreign lib provides. Regular foreign libraries export global names and the requires are synthetic. We can fix this issue by allowing foreign libraries to describe what they globally export.

1 2 3 4 5 6 {:file ... :file-min ... :requires [...] :provides [...] :global-exports '{cljsjs.react React cljsjs.react/dom-server ReactDOMServer}} ;; map :provides to a :require'able name

Environment

None

Status

Assignee

David Nolen

Reporter

David Nolen

Approval

Accepted

Patch

None

Fix versions

Affects versions

1.9.854

Priority

Blocker