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

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.

Environment

None

Activity

Show:

Details

Assignee

Reporter

Approval

Fix versions

Affects versions

Priority

Created August 18, 2017 at 7:19 PM
Updated June 6, 2018 at 12:18 PM

Flag notifications