We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26565b5 commit 30bc7c2Copy full SHA for 30bc7c2
1 file changed
src/main/clojure/cljs/cli.clj
@@ -16,6 +16,7 @@
16
[cljs.analyzer.api :as ana-api]
17
[cljs.compiler.api :as comp]
18
[cljs.build.api :as build]
19
+ [cljs.closure :as closure]
20
[cljs.repl :as repl])
21
(:import [java.io File StringReader FileWriter]
22
[java.text BreakIterator]
@@ -458,7 +459,8 @@ present"
458
459
cfg (update cfg :options merge (select-keys opts convey))
460
source (when (and (= :none (:optimizations opts :none)) main-ns)
461
(:uri (build/ns->location main-ns)))
- cenv (env/default-compiler-env)]
462
+ cenv (env/default-compiler-env
463
+ (closure/add-externs-sources (dissoc opts :foreign-libs)))]
464
(env/with-compiler-env cenv
465
(if-let [path (:watch opts)]
466
(if repl?
0 commit comments