This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-07
Channels
- # announcements (4)
- # babashka (59)
- # beginners (26)
- # calva (34)
- # clj-kondo (3)
- # cljs-dev (1)
- # clojure (77)
- # clojure-austin (4)
- # clojure-europe (20)
- # clojure-nl (2)
- # clojure-norway (11)
- # clojure-spec (3)
- # clojure-uk (4)
- # clojurescript (103)
- # community-development (2)
- # cursive (15)
- # datalevin (12)
- # datascript (38)
- # datomic (1)
- # deps-new (2)
- # events (3)
- # figwheel-main (6)
- # fulcro (9)
- # honeysql (12)
- # jobs (4)
- # juxt (18)
- # kaocha (19)
- # lsp (42)
- # missionary (2)
- # pathom (14)
- # polylith (6)
- # portal (6)
- # reagent (8)
- # reitit (4)
- # releases (2)
- # shadow-cljs (17)
- # testing (1)
- # tools-deps (50)
- # vim (46)
- # xtdb (12)
can I reload my npm dependencies without restarting the repl?
the answer is pretty much no. npm dependencies are not built with hot-reload in mind, so it very very rarely works and more often just messes things up
Is there documentation about the ["npm-lib" :as alias]
:require form? AFAIK it's specific to shadow-cljs? I've been up and down the docs and there's only a sideways reference to it.
Is that doc out of date? I picked up this form
["react-flow-renderer" :as rfr :default ReactFlow]
from another answer elsewhere and it looks like the :default part is related to the $default
suffix in some examples in the users guide.:default
was shadow-cljs only yes, the $default
is the official way. and the string require syntax otherwise is exactly the same as in CLJS, not shadow-cljs specific in any way. never was, except for the :default
addition.
Thanks; I couldn't find any documentation for this pattern in shadow-cljs or clojurescript.
not much to it really. just using a string instead of a symbol since some npm packages can contain chars that would make for invalid symbols
yeah, I should have probably left a mention. I removed it when the official $default
stuff was added to CLJS to not confuse users