Skip to content

Commit 9cddd75

Browse files
committed
CLJS-808: Warning from find-classpath-lib mistakenly included in generated source
1 parent 4eebd45 commit 9cddd75

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/clj/cljs/js_deps.clj

+6-2
Original file line numberDiff line numberDiff line change
@@ -303,5 +303,9 @@ JavaScript library containing provide/require 'declarations'."
303303
(let [{:keys [provides] :as lib-info} (library-graph-node lib-resource)]
304304
(if (some #{(name lib)} provides)
305305
lib-info
306-
(println (format "WARNING: JavaScript file found on classpath for library `%s`, but does not contain a corresponding `goog.provide` declaration: %s"
307-
lib lib-resource))))))
306+
(binding [*out* *err*]
307+
(println
308+
(format
309+
(str "WARNING: JavaScript file found on classpath for library `%s`, "
310+
"but does not contain a corresponding `goog.provide` declaration: %s")
311+
lib lib-resource)))))))

0 commit comments

Comments
 (0)