This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-22
Channels
- # aleph (6)
- # announcements (1)
- # babashka (2)
- # beginners (51)
- # calva (14)
- # cider (1)
- # clj-kondo (15)
- # cljs-dev (2)
- # cljsrn (1)
- # clojure (9)
- # clojure-czech (2)
- # clojure-spec (5)
- # clojure-uk (45)
- # clojuredesign-podcast (2)
- # clojurescript (4)
- # clojutre (3)
- # cursive (4)
- # datomic (8)
- # duct (8)
- # jackdaw (1)
- # joker (1)
- # keechma (1)
- # off-topic (127)
- # om (1)
- # reagent (1)
- # reitit (6)
- # shadow-cljs (22)
- # testing (3)
Hey! i want to stub out some foreign libs for analysing cljs code in a function like this:
(defn- analyze-file [file]
(let [opts (-> {:foreign-libs [{:file "lib/fl.js"
:provides ["react"]}]}
(cljs.closure/add-implicit-options))
state (cljs.env/default-compiler-env opts)]
(ana/no-warn
(cljs.closure/validate-opts opts)
(ana/analyze-file state file opts))
state))
with this approach however the analyzer throws an error that other namespaces like goog.object
can’t be foundHow would I directly pass the information that usually is provided via deps.cljs
to the analyzer env?