This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-28
Channels
- # aleph (4)
- # announcements (5)
- # babashka (28)
- # babashka-sci-dev (13)
- # beginners (63)
- # calva (76)
- # cider (113)
- # clara (7)
- # clj-kondo (42)
- # cljdoc (1)
- # clojure (170)
- # clojure-europe (20)
- # clojure-nl (17)
- # clojure-norway (3)
- # clojure-spec (12)
- # clojure-sweden (1)
- # clojure-uk (6)
- # clojurescript (55)
- # clojureverse-ops (1)
- # consulting (1)
- # core-async (9)
- # cursive (16)
- # data-science (1)
- # datascript (8)
- # datomic (27)
- # emacs (14)
- # events (1)
- # fulcro (10)
- # graphql (9)
- # gratitude (1)
- # jobs (6)
- # jobs-discuss (5)
- # leiningen (10)
- # lsp (35)
- # missionary (4)
- # nextjournal (9)
- # off-topic (46)
- # pathom (15)
- # pedestal (5)
- # polylith (37)
- # portal (15)
- # re-frame (22)
- # reagent (4)
- # reitit (5)
- # reveal (18)
- # shadow-cljs (20)
- # tools-deps (7)
- # xtdb (10)
Is it the compiled/transpiled output to ES5? In that case, it might have to do with references, function calls and the this
thing š
hello š . I would appreciate your help here but I'm not certain if I have given enough info/context https://stackoverflow.com/questions/69751508/unclear-error-from-react-leaflet-with-shadow-cljs
hi there sorry if I am asking something really stupid⦠when you configure your shadow-cljs project to run tests in the browser, it compiles all tests to a single file. are there intermediate steps for that compilation? Iāve been feeling that it is getting slower and slower as the project grows.
I don't understand the question? I mean the more code you have the more time it is going to take to compile? do you use watch
in which case it shouldn't matter much since its incremental and only recompiles what changes?
but I do agree that there needs to be a better test runner that doesn't always run all the tests. just need time to build it š
yeah. compilation has watch. and we have some sort of way to choose the namespaces we wanna run tests on. but on each save, it takes quite a lot to change the interfaceā¦
my point was⦠the target folder you see each module from cljs-runtime in a separate js file. whereas the test files are all in one bundle.
in fact, it does have each module in a file (TIL)
I don't understand why you want that though? it actually performs worse to load many files instead of one
but in watch
is only hot-reloads the files that changes anyways so that is entirely different thing that is also much faster
has anybody used shadow-cljs much with electron?
Iām having a lot of issues import ipcRenderer
but, based on the electron docs themselves, I donāt understand why.,
In case anybody else has the same problem, I figured it out.
You can no longer directly access ipcRenderer
through electron in the renderer process. You have to access it in a āpreload scriptā which you can access when you start the browser window.
I just created a resources/preload.js
file and added ipcRenderer
to the window object.
https://www.electronjs.org/docs/latest/tutorial/process-model#preload-scripts