Skip to content

Commit

Permalink
CLJS-3172: Unable to import goog.async.ConditionalDelay
Browse files Browse the repository at this point in the history
  • Loading branch information
mfikes committed Oct 3, 2019
1 parent 8e8c776 commit b5e22d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/clojure/cljs/js_deps.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ case."
(letfn [(conj-in [m k v] (update-in m [k] (fn [old] (conj old v))))]
(->> (for [line lines x (string/split line #";")] x)
(map string/trim)
(drop-while #(not (or (string/includes? % "goog.provide(")
(string/includes? % "goog.require("))))
(take-while #(not (re-matches #".*=[\s]*function\(.*\)[\s]*[{].*" %)))
(map #(re-matches #".*goog\.(provide|require)\(['\"](.*)['\"]\)" %))
(remove nil?)
Expand Down

0 comments on commit b5e22d2

Please sign in to comment.