File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change 788
788
(defn compile-sources
789
789
" Takes dependency ordered list of IJavaScript compatible maps from parse-ns
790
790
and compiles them."
791
- [inputs compiler-stats opts]
792
- (if (:parallel-build opts)
793
- (parallel-compile-sources inputs compiler-stats opts)
794
- (util/measure compiler-stats
795
- " Compile sources"
796
- (binding [comp/*inputs* (zipmap (map :ns inputs) inputs)]
797
- (doall
798
- (for [ns-info inputs]
799
- ; TODO: compile-file calls parse-ns unnecessarily to get ns-info
800
- ; TODO: we could mark dependent namespaces for recompile here
801
- (-compile (or (:source-file ns-info)
802
- (:source-forms ns-info))
803
- ; - ns-info -> ns -> cljs file relpath -> js relpath
804
- (merge opts {:output-file (comp/rename-to-js (util/ns->relpath (:ns ns-info)))}))))))))
791
+ ([inputs opts]
792
+ (compile-sources inputs (:compiler-stats opts) opts))
793
+ ([inputs compiler-stats opts]
794
+ (if (:parallel-build opts)
795
+ (parallel-compile-sources inputs compiler-stats opts)
796
+ (util/measure compiler-stats
797
+ " Compile sources"
798
+ (binding [comp/*inputs* (zipmap (map :ns inputs) inputs)]
799
+ (doall
800
+ (for [ns-info inputs]
801
+ ; TODO: compile-file calls parse-ns unnecessarily to get ns-info
802
+ ; TODO: we could mark dependent namespaces for recompile here
803
+ (-compile (or (:source-file ns-info)
804
+ (:source-forms ns-info))
805
+ ; - ns-info -> ns -> cljs file relpath -> js relpath
806
+ (merge opts {:output-file (comp/rename-to-js (util/ns->relpath (:ns ns-info)))})))))))))
805
807
806
808
(defn add-goog-base
807
809
[inputs]
You can’t perform that action at this time.
0 commit comments