This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-16
Channels
- # aleph (2)
- # announcements (1)
- # aws (2)
- # babashka (5)
- # beginners (122)
- # boot-dev (1)
- # cider (3)
- # clara (7)
- # cljdoc (11)
- # clojure (161)
- # clojure-dev (45)
- # clojure-europe (8)
- # clojure-france (1)
- # clojure-india (1)
- # clojure-italy (3)
- # clojure-nl (11)
- # clojure-uk (34)
- # clojurebridge (2)
- # clojurescript (13)
- # cryogen (10)
- # cursive (13)
- # datomic (25)
- # emacs (8)
- # fulcro (76)
- # graalvm (2)
- # jackdaw (5)
- # jobs-discuss (2)
- # juxt (13)
- # off-topic (13)
- # pathom (5)
- # pedestal (7)
- # quil (2)
- # reitit (9)
- # remote-jobs (4)
- # schema (1)
- # shadow-cljs (33)
- # spacemacs (8)
- # sql (9)
- # vim (2)
- # vrac (2)
hi everyone. do we have a re-frame template for shadow-cljs? meaning something line lein new shadow-cljs +re-frame
async and actual <script>
tags, depending on whether you use <script async src="the-module.js">
or not
I think both will work, the issue is probably that SHADOW_ENV.evalLoad
is really running “anonymous” code which is not associated with any source file, so (logically) that source file is not created/tracked in the DevTools - devtools only creates “virtual” cljs files from sourcemap information (orange stuff in devtools resource tree)
but just the fact that it fetched the url could add it into DevTools and cljs source reference would work
my guess is that it expects //# sourceURL=
or something instead of just /js/cljs-runtime/foo.bar.js
I can't remember if I ever tried this in a browser context. I tried it in react-native and that didn't work at all since you don't know the location
I do remember that I played around with this a whole bunch ... wish I left more comments 😛
🙂 this stuff is still in flux, there used to be pretty bad bugs in devtools sourcemap implementation for example, so stuff could have changed since you last looked
there are still issues between mapping locals, but it is low priorty for them to fix: https://github.com/binaryage/dirac/issues/53
here is the issue I have with breakpoints: https://github.com/binaryage/dirac/issues/64 is works only sometimes on simple code
it would help if cljs generated dev code on more lines (use more newlines to split logical js pieces like humans)
I see, that is what I tend to do as well, but I have to see the js files in devtools 🙂
@thheller good news, your guess was correct changing sourceURL to full url fixed the issue in :eval mode for me