This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-29
Channels
- # announcements (6)
- # babashka (23)
- # beginners (15)
- # biff (15)
- # calva (17)
- # clara (5)
- # clj-kondo (41)
- # cljdoc (2)
- # cljs-dev (67)
- # cljsrn (18)
- # clojure (19)
- # clojure-europe (25)
- # clojure-nl (2)
- # clojure-norway (9)
- # clojure-uk (2)
- # clojurescript (26)
- # core-typed (6)
- # cursive (15)
- # data-science (30)
- # datahike (1)
- # datomic (18)
- # docker (6)
- # emacs (10)
- # events (2)
- # graalvm (15)
- # graphql (5)
- # hugsql (4)
- # jobs-discuss (1)
- # joker (7)
- # lsp (36)
- # malli (28)
- # off-topic (46)
- # other-languages (1)
- # pathom (5)
- # pedestal (6)
- # polylith (5)
- # reitit (2)
- # releases (1)
- # rewrite-clj (63)
- # shadow-cljs (7)
- # spacemacs (16)
- # squint (6)
- # tools-deps (6)
- # xtdb (13)
how come https://shadow-cljs.github.io/docs/UsersGuide.html#target-npm-module has :output-dir
entry as optional but in the latest shadow-cljs version if :output-dir
is omitted it throws
Invalid configuration
-- Spec failed --------------------
{:target :npm-module, :entries [main], :build-id :app}
should contain key: :output-dir
| key | spec |
|=============+===============================================|
| :output-dir | shadow.build.targets.shared/non-empty-string? |
out of date docs I guess. it needs to know where to write the files so it is required
I would like to install some deps as local source so I can add some logging/debug statements. I know one way to do it is as described in https://shadow-cljs.github.io/docs/UsersGuide.html#_patching_libraries. Is it not also possible to install the libraries using deps.edn git coordinates and then edit the source in .gitlibs? When I try this, the changes don't seem to survive a page refresh.
what is the equivalent to export default
in shadow ? iād like to import Function from 'shadow-cljs/demo.foo
from within JS
@alex.sheluchin .gitlibs are immutable and should not be edited. use :local/root
instead.

@jon.rostran for ESM code you should use :target :esm
? https://shadow-cljs.github.io/docs/UsersGuide.html#target-esm