Skip to content

Commit e0cd269

Browse files
committed
fix analysis issues with cljs 1.10.439
More details in this Gist: https://gist.github.com/martinklepsch/9f885feb061ec3f03f365e22d0d9bf5b Fixes cljdoc/cljdoc#201
1 parent 9a018ae commit e0cd269

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

codox/src/codox/reader/clojurescript.clj

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
(:require [clojure.java.io :as io]
55
[cljs.analyzer :as an]
66
[cljs.analyzer.api :as ana]
7+
[cljs.closure]
8+
[cljs.env]
79
[clojure.string :as str]))
810

911
(defn- cljs-filename? [filename]
@@ -71,10 +73,11 @@
7173
(sort-by (comp str/lower-case :name)))))
7274

7375
(defn- analyze-file [file]
74-
(let [state (ana/empty-state)]
75-
(binding [an/*analyze-deps* true]
76-
(ana/no-warn
77-
(ana/analyze-file state file {})))
76+
(let [opts (cljs.closure/add-implicit-options {})
77+
state (cljs.env/default-compiler-env opts)]
78+
(ana/no-warn
79+
(cljs.closure/validate-opts opts)
80+
(ana/analyze-file state file opts))
7881
state))
7982

8083
(defn- read-file [path file exception-handler]

0 commit comments

Comments
 (0)