Skip to content

Commit

Permalink
fix regression introduced by CLJS-1973
Browse files Browse the repository at this point in the history
We only want to index by :file on :npm-deps, not on all
foreign libs blindly
  • Loading branch information
swannodette committed Apr 14, 2017
1 parent 10fc3ce commit 3d2dcaf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/main/clojure/cljs/closure.clj
Original file line number Diff line number Diff line change
Expand Up @@ -1959,10 +1959,10 @@
:as opts}]
(let [opts (cond-> (update opts :foreign-libs
(fn [libs]
(into []
(util/distinct-merge-by :file
(index-node-modules npm-deps opts)
(expand-libs libs)))))
(into (into []
(util/distinct-merge-by :file
(index-node-modules npm-deps opts)))
(expand-libs libs))))
(:closure-defines opts)
(assoc :closure-defines
(into {}
Expand All @@ -1981,10 +1981,10 @@
:optimizations optimizations
:output-dir output-dir
:ups-libs libs
:ups-foreign-libs (into []
(util/distinct-merge-by :file
(index-node-modules (compute-upstream-npm-deps opts) opts)
(expand-libs foreign-libs)))
:ups-foreign-libs (into (into []
(util/distinct-merge-by :file
(index-node-modules (compute-upstream-npm-deps opts) opts)))
(expand-libs foreign-libs))
:ups-externs externs
:emit-constants emit-constants
:cache-analysis-format (:cache-analysis-format opts :transit))
Expand Down

0 comments on commit 3d2dcaf

Please sign in to comment.