This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-26
Channels
- # adventofcode (12)
- # beginners (141)
- # cider (3)
- # cljsrn (3)
- # clojure (76)
- # clojure-russia (1)
- # clojure-spec (7)
- # clojure-uk (4)
- # clojurescript (15)
- # css (1)
- # duct (3)
- # emacs (5)
- # fulcro (85)
- # keechma (1)
- # leiningen (44)
- # off-topic (29)
- # om (6)
- # parinfer (4)
- # perun (1)
- # re-frame (18)
- # reagent (2)
- # ring-swagger (8)
- # shadow-cljs (5)
- # spacemacs (1)
- # sql (7)
I'm breaking up a project into multiple libraries and realized that I don't really understand the CLJS compilation model.
So, tl;dr - what is a good doc on how all the pieces fit together?
Or, less vague:
- Assume project main
has a dependency on project sub
. Both built with lein and using cljsbuild,
- Assume, too, that main
has a dev build with :optimizations :none
and a production build with :optimizations :advanced
.
What determines how the code of sub will be optimized in main?
Thanks! I had thought so, but was being faked out by a mistake that suggested otherwise. Now fixing my real problem...
Related question: What is goog.DEBUG
and who sets it? (Sorry for this dumb question; the answer is buried in too many "goog.debug" by case-insensitive google search).
I'm working with a project.clj that sets it to false in production build, but I'd like to be sure I understand why it's true in my dev build.
@deg it is defined here and defaults to true https://github.com/google/closure-library/blob/master/closure/goog/base.js#L209
what's a promise / async / await equivalent in cljs?
ya, that's prolly the idiomatic way -- but, what's a more rough translation?
something like js/Promise
?
but then async/await keywords are sugar -- how would those be referenced in cljs (or would they)?