From b5e22d29928c8c65e595e1f008548b21674a75d3 Mon Sep 17 00:00:00 2001 From: Mike Fikes Date: Wed, 18 Sep 2019 23:25:55 -0400 Subject: [PATCH] CLJS-3172: Unable to import goog.async.ConditionalDelay --- src/main/clojure/cljs/js_deps.cljc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/clojure/cljs/js_deps.cljc b/src/main/clojure/cljs/js_deps.cljc index 859ae96fa1..5fc100b1bf 100644 --- a/src/main/clojure/cljs/js_deps.cljc +++ b/src/main/clojure/cljs/js_deps.cljc @@ -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?)