This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-12
Channels
- # announcements (2)
- # beginners (104)
- # cider (2)
- # cljs-dev (26)
- # cljsrn (1)
- # clojure (125)
- # clojure-dev (27)
- # clojure-italy (24)
- # clojure-nl (24)
- # clojure-russia (4)
- # clojure-spec (10)
- # clojure-uk (83)
- # clojurescript (18)
- # code-reviews (102)
- # community-development (14)
- # core-async (18)
- # cryogen (11)
- # cursive (15)
- # datomic (16)
- # emacs (6)
- # figwheel-main (6)
- # fulcro (142)
- # graphql (5)
- # jobs (5)
- # jobs-discuss (18)
- # kaocha (1)
- # keechma (1)
- # leiningen (20)
- # luminus (1)
- # mount (5)
- # pedestal (4)
- # reagent (17)
- # reitit (8)
- # shadow-cljs (29)
- # tools-deps (19)
- # vim (108)
is there any blessed way to figure out the current target at macro-expansion time? eg. to switch based on “nodejs” or “browser”
eg
(= "nodejs"
(-> @cljs.env/*compiler*
:options
:closure-defines
(get 'cljs.core/*target*)))
@mhuebert anything in :compiler-options
ends up in (:options @cljs.env/*compiler*)
so you could add your own option
:compiler-options {:external-config {...}}
has some extra treatment to invalidate all cache when anything in there changes
conditional reading might work if you can just include a different namespace and just have 2 different implementations
@arne-clojurians :jvm-opts ["-Xmx1G"]
in the shadow-cljs.edn
top level
anyone ever seen this? it's gotta be something simple, I'm working from a project I have locally as a template, and it works over there, I'm only removing aliases I no longer need...
Caused by: java.lang.RuntimeException: Unable to resolve var: comp/*source-map-data-gen-col* in this context
@haywood that looks like what I got when I ran the latest version of shadow with an older version of ClojureScript pinned in my Deps somewhere
@haywood yes 2.7.X
requires CLJS 1.10.439
. this is enforced when using shadow-cljs.edn
but lein
or so may need manual tweaking
unfortunately they added a new requiring binding which means older versions aren't compatible anymore