@danie re: this :as-alias patch, I left comment on the JIRA issue about needing clarity as to why need to bump CLJ for the fix, if there's another way to get the fix w/o that change that would be desirable as that feels like unnecessary scope, https://clojure.atlassian.net/browse/CLJS-3475
thinking about switching to append script instead of document.write to make ClojureScript morph friendly. A lot of JS tools use eval and I think shadow-cljs does as well - but I can't come up w/ any really good reasons for this for ClojureScript, especially since we punt the JS build problems to JS build tools. But there may be other subtle advantages I'm just not aware of.
ah I see, thanks
see https://clojureverse.org/t/improving-initial-load-time-for-browser-builds-during-development/2518
eval mostly addresses the perf problems of loading many files, which may all be cljs output, so still relevant
could just be a single big file, but generating the source map for that kinda sucks
the :esm target in shadow-cljs just uses esm import, but even that sucks for development builds and people have asked to enable the eval loader for esm as well
fwiw http2 also helps, but not everyone has a dev server + ssl cert to make that work
how does eval make :esm nicer?
to clarify a bit, I am asking what do users get from the eval approach that they prefer over import approach during dev for :esm?
eval packs all files into one. so there is only one request made to fetch everything. making compression better. also typical http1 max N connections per server otherwise limits the time it takes to fetch all files. so a network constraint that even import has to live with. import does perform better than document.write/script tags, but eval is substantially faster for builds with a lot of files