Skip to content

Commit 98ed0f4

Browse files
author
dnolen
committed
CLJS-1268: cljc support for cljs.closure/compile-file
1 parent ed5a2c9 commit 98ed0f4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/clojure/cljs/closure.clj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,10 @@
371371
(if output-file
372372
(let [out-file (io/file (util/output-directory opts) output-file)]
373373
(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))))))
374+
(let [path (.getPath ^File file)]
375+
(binding [ana/*cljs-file* path]
376+
(with-open [rdr (io/reader file)]
377+
(compile-form-seq (ana/forms-seq* rdr path)))))))
377378

378379
(defn compile-dir
379380
"Recursively compile all cljs files under the given source

0 commit comments

Comments
 (0)