This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-28
Channels
- # announcements (2)
- # aws (21)
- # babashka (4)
- # babashka-sci-dev (17)
- # beginners (3)
- # cider (16)
- # clj-kondo (61)
- # clojure (122)
- # clojure-europe (11)
- # clojure-spec (3)
- # clojurescript (2)
- # conjure (19)
- # helix (9)
- # hyperfiddle (2)
- # inf-clojure (18)
- # lsp (12)
- # off-topic (15)
- # react (2)
- # releases (1)
- # shadow-cljs (40)
- # spacemacs (4)
- # tools-deps (5)
- # vim (15)
Is it possible to inline all source-map during development?
How can i change that?
The reason i need inline source maps is because the ionic capacitor is unable to load the source maps from the URL. I'm receiving these kind of errors
It opens the source map correctly
I get the source map 🙂
No more info.
How can I know that?
I didn't have CSP enabled .
then it might be using a default which is too restrictive. don't know. never used this
that sometimes gives more errors than the log line or at least lets you debug it further
Yeah. In my case shadow-cljs is serving all the files.
I mean try it :compiler-options {:source-map-inline true}
and :devtools {:loader-mode :script}
debugging..
Inline source maps work. I will probably leave it for now and optimize later 🙂
Thank you so much @U05224H0W!
I have a “maybe” the same problem, is that resolved? When I run (ns-tools/refresh :after 'mount-components-reset)
, I got error message.. didn’t find namespace.. at clj part (I use pedestal, and something looks like “locked(?)” ).
;; this somehow breaks reloading
;; the usual :reloading message tells me that is namespace is being reloaded
;; but when the new instance is launched it is still using the old one
;; i cannot figure out why
;; (ns-tools/refresh :after 'repl/start)
https://github.com/thheller/shadow-cljs/blob/ba0a02aec050c6bc8db1932916009400f99d3cce/src/dev/repl.clj (comment from here)
ps I read here in the community try delete .m2 > juxt folder.. and now not freeze out, but don’t update the backend content [UPDATE: works fine].
Everything fine: rm -rf ~/.m2/repository/juxt
after this command.. :man-shrugging: I don’t understand fully. Sorry for this spam, if you would like I will delete this thread.
Can anyone post a link to a good article on how to minimize release build file size? My optimizations none is 16MB and my advanced is 4MB, This is my release section in my shadow-cljs.edn
:release {:compiler-options {:optimizations :advanced}
:js-options {:minimize-require true}}
I can't help but think... I'm doing something majorly wrong. I'm using Fulcro and MUI, so I was imagining something pretty big, but 4MB seems like an 'it's my fault' size. CHEERS!
what's your build report look like? npx shadow-cljs run shadow.cljs.build-report [build-id] report.html
Thanks for the reply. I didn't know that trick. That was very instructive. I've got 1MB for apache ECharts, 1MB for MUI. And 2MB scattered. It definitely is a 'me using too much cool stuff' problem. Looks like I'll have to go the multiple modules route.
@U797MAJ8M That really was a good tip. Thanks again! Now that I can see where the problem is, there are some solutions out there.
@U036UJBDM5G you don't need to set any of those :release
options. they are the default already. setting them again does nothing.