Share your thoughts in the 2024 State of Clojure Survey!

Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

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.

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-2331 (reported by dnolen)
...