This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-12
Channels
- # announcements (1)
- # babashka (42)
- # beginners (114)
- # bristol-clojurians (2)
- # calva (7)
- # cider (4)
- # clj-kondo (7)
- # cljs-dev (37)
- # cljsrn (13)
- # clojure (114)
- # clojure-austin (3)
- # clojure-europe (5)
- # clojure-nl (10)
- # clojure-spec (77)
- # clojure-sweden (4)
- # clojure-uk (16)
- # clojurescript (52)
- # conjure (155)
- # core-async (18)
- # cursive (23)
- # datomic (20)
- # duct (2)
- # emacs (13)
- # figwheel (3)
- # figwheel-main (9)
- # fulcro (31)
- # gis (8)
- # helix (33)
- # jobs (12)
- # jobs-discuss (66)
- # kaocha (4)
- # lein-figwheel (1)
- # meander (16)
- # off-topic (5)
- # pathom (13)
- # pedestal (6)
- # quil (6)
- # rdf (17)
- # re-frame (32)
- # reagent (34)
- # reitit (30)
- # remote-jobs (1)
- # ring (2)
- # shadow-cljs (149)
- # spacemacs (1)
- # sql (8)
- # tools-deps (90)
- # xtdb (19)
is there a relevant part of the clojurescript codebase that I could start spelunking in?
we look at goog/deps.js
if the entry has module: "goog"
we make sure that info is in the index we create for Closure Library
in the case of a user lib that information might be missing but it could of course be trivially inferred
https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/js_deps.cljc#L119
https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/js_deps.cljc#L325-L350
https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/js_deps.cljc#L347
@lilactown in your case you're producing a bunch of output from TS
Closure has a feature to produce a deps.js
for sources though the details have changed over time
@lilactown I think really in your case all we need is to support multiple GCL-like "roots" so to speak
I’m not sure I completely understand 😛 I haven’t loaded all of the context into my head. It’s my first time looking at the CLJS <-> GCC integration
I’m on-call this week so probably won’t get to it, but maybe over the weekend I can take a look
is this issue relevant? https://clojure.atlassian.net/browse/CLJS-1543
so for instance, if I'm developing a library that ships some Closure JS with goog.module