We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed5a2c9 commit 98ed0f4Copy full SHA for 98ed0f4
src/main/clojure/cljs/closure.clj
@@ -371,9 +371,10 @@
371
(if output-file
372
(let [out-file (io/file (util/output-directory opts) output-file)]
373
(compiled-file (comp/compile-file file out-file opts)))
374
- (binding [ana/*cljs-file* (.getPath ^File file)]
375
- (with-open [rdr (io/reader file)]
376
- (compile-form-seq (ana/forms-seq* rdr))))))
+ (let [path (.getPath ^File file)]
+ (binding [ana/*cljs-file* path]
+ (with-open [rdr (io/reader file)]
377
+ (compile-form-seq (ana/forms-seq* rdr path)))))))
378
379
(defn compile-dir
380
"Recursively compile all cljs files under the given source
0 commit comments