File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 193
193
(if-not (nil? env/*compiler*)
194
194
env/*compiler*
195
195
(env/default-compiler-env
196
- (closure/add-externs-sources
197
- (closure/add-implicit-options opts))))))
196
+ (closure/add-externs-sources opts)))))
198
197
([source opts compiler-env]
199
198
(doseq [[unknown-opt suggested-opt] (util/unknown-opts (set (keys opts)) closure/known-opts)]
200
199
(when suggested-opt
Original file line number Diff line number Diff line change 2459
2459
#(-> %
2460
2460
(update-in [:options ] merge all-opts)
2461
2461
(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))
2462
2465
; ; Save list of sources for cljs.analyzer/locate-src - Juho Teperi
2463
2466
(assoc :sources sources)))
2464
2467
(binding [comp/*recompiled* (when-not (false ? (:recompile-dependents opts))
Original file line number Diff line number Diff line change 16
16
[cljs.env :as env]
17
17
[cljs.analyzer :as ana]
18
18
[cljs.test-util :as test]
19
- [cljs.build.api :as build]))
19
+ [cljs.build.api :as build]
20
+ [cljs.closure :as closure]))
20
21
21
22
(deftest test-target-file-for-cljs-ns
22
23
(is (= (.getPath (build/target-file-for-cljs-ns 'example.core-lib nil ))
409
410
:target :nodejs }]
410
411
(test/delete-out-files out)
411
412
(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)
412
416
(is (.exists (io/file out " calculator_global.js" )))))
You can’t perform that action at this time.
0 commit comments