Regarding the release draft I got one question. Is it possibile to name Window dependency in require as well? For instance I would rather use Promise then js/Promise.
window
is the default global in the browser so goog$global.Promise
will work
pretty sure that needs an :as
to work
Actually, having problems getting this to work at all from a browser repl I spun up:
❯ clj -Sdeps ' {:deps {org.clojure/clojurescript {:mvn/version "1.10.844"}}} ' -m cljs.main -r
WARNING: When invoking clojure.main, use -M
ClojureScript 1.10.844
cljs.user=> (require '[goog$global.Math :refer [max]])
Unexpected error (ExceptionInfo) compiling at (<cljs repl>:1:2).
Invalid :refer, var goog$global.Math/max does not exist at line 1 <cljs repl>
I think I'm having general problems
don't know how its handled in CLJS directly. shadow-cljs also had a bug related to this when done in the REPL. works fine in regular code though, maybe the same situation for the normal CLJS REPL