This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-20
Channels
- # adventofcode (29)
- # announcements (7)
- # aws (1)
- # babashka (3)
- # beginners (43)
- # biff (20)
- # clj-kondo (44)
- # cljs-dev (20)
- # clojure (74)
- # clojure-europe (24)
- # clojure-finland (2)
- # clojure-nl (13)
- # clojure-norway (3)
- # clojurescript (31)
- # code-reviews (1)
- # community-development (12)
- # cursive (3)
- # datomic (6)
- # emacs (1)
- # fulcro (25)
- # interop (7)
- # introduce-yourself (2)
- # leiningen (30)
- # nbb (3)
- # overtone (1)
- # podcasts-discuss (5)
- # polylith (24)
- # practicalli (1)
- # reclojure (1)
- # reitit (13)
- # rum (7)
- # shadow-cljs (12)
- # sql (23)
- # squint (51)
- # test-check (1)
- # testing (2)
- # tools-deps (2)
Hello! If I want to implement a custom :js-provider
(for pnpm) and thus extend the s.b.resolve/find-resource-for-string*
multimethod, https://github.com/thheller/shadow-cljs/issues/670#issuecomment-732788677, how do I do that? Can it be in my own code or do I need to clone shadow-cljs and then somehow use the local, extended version of it? (I guess via direct invocation with clj
it would be possible.) Thank you!
I'd start with just a function that does the pnp-resolve, as I wrote in that comment
after that if you are working in the REPL you can just load your namespace with the defmethod
Yes but I somehow need to get shadow to call the function,no?
yes, as described in the comment above you take the impl for the defmethod for :shadow
So my initial understanding that I defmethod s.b.resolve/find-resource-for-string*
that calls my own resolve-pnpm
was correct, and the way to go about it is to use REPL and run shadow build from there.
thank you!