Skip to content

Commit 30bc7c2

Browse files
author
dnolen
committed
fix externs handling in default-compile
1 parent 26565b5 commit 30bc7c2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/clojure/cljs/cli.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
[cljs.analyzer.api :as ana-api]
1717
[cljs.compiler.api :as comp]
1818
[cljs.build.api :as build]
19+
[cljs.closure :as closure]
1920
[cljs.repl :as repl])
2021
(:import [java.io File StringReader FileWriter]
2122
[java.text BreakIterator]
@@ -458,7 +459,8 @@ present"
458459
cfg (update cfg :options merge (select-keys opts convey))
459460
source (when (and (= :none (:optimizations opts :none)) main-ns)
460461
(:uri (build/ns->location main-ns)))
461-
cenv (env/default-compiler-env)]
462+
cenv (env/default-compiler-env
463+
(closure/add-externs-sources (dissoc opts :foreign-libs)))]
462464
(env/with-compiler-env cenv
463465
(if-let [path (:watch opts)]
464466
(if repl?

0 commit comments

Comments
 (0)