This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-04
Channels
- # aleph (1)
- # asami (6)
- # babashka (44)
- # beginners (20)
- # calva (6)
- # circleci (1)
- # clj-kondo (2)
- # cljdoc (2)
- # clojure (184)
- # clojure-europe (13)
- # clojure-nl (4)
- # clojure-spain (1)
- # clojure-uk (4)
- # clojurescript (35)
- # code-reviews (1)
- # conjure (3)
- # core-async (60)
- # core-logic (1)
- # cursive (11)
- # data-science (2)
- # events (11)
- # graalvm (4)
- # graphql (2)
- # introduce-yourself (1)
- # jobs (2)
- # leiningen (3)
- # malli (16)
- # minecraft (6)
- # practicalli (1)
- # reagent (3)
- # reitit (1)
- # releases (3)
- # remote-jobs (2)
- # rewrite-clj (21)
- # shadow-cljs (12)
- # tools-deps (21)
- # vim (16)
Hello and a happy new year!
Is there a way to query the shadow-cljs build id or the build target inside of (defmacro ...)
?
I have two different builds (one for browser and one for node) and I would like to generate different code from the macro.
I guess you can get the compiler env and the set something in :compiler-options
similar to how cljs-devtools
does
I'm getting intermittent errors about jscomp.inherit
, which has come up on this channel before and apparently it's an issue with correct polyfill loading. I don't know if there's helpful information I can report?
yeah unfortunately this issue is proving very hard to reproduce but reports have been very silent for newer shadow-cljs version. which version do you use?
I just upgraded to the latest, 2.16.12
in an attempt to fix another issue.
The release build doesn't seem to have this issue. I don't know if that's a coincidence or if release builds don't have this issue? The project I'm working on is for an event, so ideally release builds would be as low risk as possible in case we have to do a hotfix.
This probably doesn't help very much but the specific module is goog.iter.es6.js
.
which :output-feature-set
do you use? ideally you set :compiler-options {:output-feature-set :es8}
(or higher if you can). then this error should disappear completely.
Sorry for not responding sooner. I'm not sure I can share the repository because it's for a client of ours. Is there a way I can find the code that caused the polyfill to be used? The source mapping doesn't seem to work (although maybe I should try Chrome).
Unfortunately I cannot simply link to the code, as it isn't open source.