Skip to content
Browse files

CLJS-3067: Fix compiler crash when requiring cljs.loader w/o modules

  • Loading branch information...
mk authored and mfikes committed Apr 5, 2019
1 parent 1fcce71 commit 47386d7c03e6fc36dc4f0145bd62377802ac1c02
Showing with 7 additions and 6 deletions.
  1. +7 −6 src/main/clojure/cljs/closure.clj
@@ -1230,12 +1230,13 @@
compiled last after all inputs. This is because all inputs must be known and
they must already be sorted in dependency order."
[inputs {:keys [modules] :as opts}]
(when-let [loader (->> inputs
(fn [input]
(some '#{"cljs.loader" cljs.loader}
(:provides input))))
(when-let [loader (when (seq modules)
(->> inputs
(fn [input]
(some '#{"cljs.loader" cljs.loader}
(:provides input))))
(let [module-uris (module-graph/modules->module-uris modules inputs opts)
module-infos (module-graph/modules->module-infos modules)]
(swap! env/*compiler* ana/add-consts

0 comments on commit 47386d7

Please sign in to comment.
You can’t perform that action at this time.