This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-15
Channels
- # babashka (4)
- # beginners (136)
- # calva (63)
- # clerk (7)
- # clj-kondo (8)
- # clojure (43)
- # clojure-boston (1)
- # clojure-europe (37)
- # clojure-nl (1)
- # clojure-norway (11)
- # clojure-uk (3)
- # clojurescript (6)
- # clr (1)
- # code-reviews (16)
- # cursive (45)
- # datomic (2)
- # docker (32)
- # emacs (10)
- # events (2)
- # exercism (1)
- # fulcro (3)
- # hugsql (1)
- # hyperfiddle (47)
- # leiningen (3)
- # lsp (30)
- # malli (39)
- # missionary (1)
- # off-topic (24)
- # pathom (2)
- # portal (14)
- # practicalli (5)
- # rdf (13)
- # reagent (18)
- # reitit (18)
- # releases (7)
- # remote-jobs (1)
- # sci (2)
- # shadow-cljs (45)
- # sql (7)
- # tools-build (11)
- # xtdb (13)
We have a webworker script that has shared code with our main script. It requires shared.js
but during deployment we fingerprint our files. What is the best way to deal with fingerprinting? Or just turn off code splitting? (also, how would we turn that off)
assuming here that by worker you mean https://shadow-cljs.github.io/docs/UsersGuide.html#_web_workers
awesome, even md5 hashing
many thanks!
unbelievable how great shadow.cljs is
thank you!
ok, we will work with versions
got it, thanks
(let [config (shadow.config/get-build! :browser) config* (assoc config :release-version version-tag
should this work?
nevermind, sorry
it did work
Hello Thomas! Any tips on how to enable development mode for React?
React https://overreacted.io/how-does-the-development-mode-work/ say it uses process.env.NODE_ENV
expression, that in frontend will be replaced with a string literal.
Is that the place to use :closure-defines
?
I want it in hopes that it will improve my chrome performance tab experience with âuser timingâ https://calibreapp.com/blog/react-performance-profiling-optimization
UPD: react dev tools say Iâm already using a development build (but I just enabled these constants)
Hello folks! Is the docs of shadowâs api somewhere? https://cljdoc.org/d/thheller/shadow-cljs/ says the build failed and shows nothing đ https://github.com/thheller/shadow-cljs only mentions user manual and that one is little too long to scan. (In particular I am looking for a way to load a .edn into a def at compile time, I know there is a shadow fn for that but can never find it đ ) Thank you!
I did find shadow.resource/inline via GitHub in the end. Still would like to know if the api docs are somewhereâŚ
ok, thx I mean âno api docsâ The readme is there
Another question: Any idea why (shadow/compile! :app nil)
might be failing with
> Execution error (IllegalArgumentException) at shadow.build.closure/set-options (closure.clj:166).
> No matching method legacySetOutputFeatureSet found taking 1 args for class com.google.javascript.jscomp.CompilerOptions
? Running from the CLI works just fineâŚ
try {}
instead of nil? otherwise probably a version conflict. make sure you get the expected shadow-cljs,clojurescript,closure-compiler combo.
{} gives same error. In my project.clj I have only
[org.clojure/clojure "1.10.3"]
[com.cerner/clara-rules "0.21.1"]
[org.clojure/core.logic "1.0.1"]
[dev.weavejester/medley "1.6.0"]
[org.clojure/clojurescript "1.11.60"]
[thheller/shadow-cljs "2.22.2"]
Not sure what could conflict with shadow?And where does the compiler one come from? How do I force the correct version?
should be [com.google.javascript/closure-compiler-unshaded "v20230228"]
, if not add this to your deps
you are right
Where in the user guide did I overlook this? To know where to look for troubleshooting next time đ I checked https://shadow-cljs.github.io/docs/UsersGuide.html#_installation