Fork me on GitHub
#shadow-cljs
<
2022-09-29
>
jon rostran02:09:14

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

jon rostran02:09:17

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? |

thheller05:09:29

out of date docs I guess. it needs to know where to write the files so it is required

āœ… 1
sheluchin13:09:44

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.

jon rostran14:09:59

what is the equivalent to export default in shadow ? iā€™d like to import Function from 'shadow-cljs/demo.foo from within JS

thheller15:09:49

@alex.sheluchin .gitlibs are immutable and should not be edited. use :local/root instead.

gratitude-thank-you 1