Uploaded image for project: 'ClojureScript'
  1. CLJS-2331

Extend :global-exports to auto-alias and rewrite occurrences of declared globals

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects versions: 1.9.908
    • Fix versions: Next
    • Approval:
      Accepted

      Description

      In order to lower the barrier to adopting `:npm-deps` we could push `:global-exports` a bit further. Instead of just using it to support foreign-libs, we can also use it to automatically make libraries node_modules compatible. This can be done by auto generating a namespace alias if not provided and rewriting global access for matching symbols. Some libs may refer to globals without explicit requires and we should warn in that case.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dnolen David Nolen
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: