File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 193193 (if-not (nil? env/*compiler*)
194194 env/*compiler*
195195 (env/default-compiler-env
196- (closure/add-externs-sources
197- (closure/add-implicit-options opts))))))
196+ (closure/add-externs-sources opts)))))
198197 ([source opts compiler-env]
199198 (doseq [[unknown-opt suggested-opt] (util/unknown-opts (set (keys opts)) closure/known-opts)]
200199 (when suggested-opt
Original file line number Diff line number Diff line change 24592459 #(-> %
24602460 (update-in [:options ] merge all-opts)
24612461 (assoc :target (:target opts))
2462+ ; ; Save the current js-dependency index once we have computed all-opts
2463+ ; ; or the analyzer won't be able to find upstream dependencies - Antonio
2464+ (assoc :js-dependency-index (deps/js-dependency-index all-opts))
24622465 ; ; Save list of sources for cljs.analyzer/locate-src - Juho Teperi
24632466 (assoc :sources sources)))
24642467 (binding [comp/*recompiled* (when-not (false ? (:recompile-dependents opts))
Original file line number Diff line number Diff line change 1616 [cljs.env :as env]
1717 [cljs.analyzer :as ana]
1818 [cljs.test-util :as test]
19- [cljs.build.api :as build]))
19+ [cljs.build.api :as build]
20+ [cljs.closure :as closure]))
2021
2122(deftest test-target-file-for-cljs-ns
2223 (is (= (.getPath (build/target-file-for-cljs-ns 'example.core-lib nil ))
409410 :target :nodejs }]
410411 (test/delete-out-files out)
411412 (build/build (build/inputs (io/file root " foreign_libs_cljs_2249" )) opts)
413+ (is (.exists (io/file out " calculator_global.js" )))
414+ (test/delete-out-files out)
415+ (closure/build (build/inputs (io/file root " foreign_libs_cljs_2249" )) opts)
412416 (is (.exists (io/file out " calculator_global.js" )))))
You can’t perform that action at this time.
0 commit comments