Skip to content

Commit 0e258d8

Browse files
author
dnolen
committed
when writing out the analysis cache for core we need to set :infer-externs to true
1 parent ac0601c commit 0e258d8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/clojure/cljs/build/api.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
(src-file->goog-require
9090
(if-not (nil? env/*compiler*)
9191
env/*compiler*
92-
(env/default-compiler-env))
92+
(env/default-compiler-env options))
9393
src options))
9494
([state src options]
9595
(env/with-compiler-env state

src/main/clojure/cljs/closure.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2306,7 +2306,7 @@
23062306
cache (io/file base-path "core.cljs.cache.aot.edn")
23072307
tcache (io/file base-path "core.cljs.cache.aot.json")]
23082308
(util/mkdirs dest)
2309-
(env/with-compiler-env (env/default-compiler-env)
2309+
(env/with-compiler-env (env/default-compiler-env {:infer-externs true})
23102310
(comp/compile-file src dest
23112311
{:source-map true
23122312
:source-map-url "core.js.map"

0 commit comments

Comments
 (0)