Skip to content

Commit

Permalink
CLJS-2494: If :npm-deps is false, don't index node_modules/ dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Deraen authored and swannodette committed Feb 10, 2018
1 parent 72e2ab6 commit 486de1a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/clojure/cljs/closure.clj
Expand Up @@ -2580,7 +2580,10 @@
(let [top-level (reduce
(fn [acc m]
(reduce (fn [acc p] (assoc acc p m)) acc (:provides m)))
{} (index-node-modules-dir))
{}
;; if :npm-deps option is false, node_modules/ dir shouldn't be indexed
(if (not (false? npm-deps))
(index-node-modules-dir)))
requires (set (mapcat deps/-requires js-sources))
;; Select Node files that are required by Cljs code,
;; and create list of all their dependencies
Expand Down

0 comments on commit 486de1a

Please sign in to comment.