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?)