Skip to content

Commit d944c75

Browse files
committed
default REPLs to :cache-analysis true
1 parent 26fb523 commit d944c75

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

src/clj/cljs/repl.clj

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -638,18 +638,20 @@
638638
(let [ups-deps (cljsc/get-upstream-deps)
639639
{:keys [analyze-path repl-verbose warn-on-undeclared special-fns static-fns] :as opts
640640
:or {warn-on-undeclared true}}
641-
(assoc (merge (-repl-options repl-env) opts)
642-
:init init
643-
:need-prompt prompt
644-
:flush flush
645-
:read read
646-
:print print
647-
:caught caught
648-
:reader reader
649-
:print-no-newline print-no-newline
650-
:source-map-inline source-map-inline
651-
:ups-libs (:libs ups-deps)
652-
:ups-foreign-libs (:foreign-libs ups-deps))]
641+
(merge
642+
{:cache-analysis true}
643+
(assoc (merge (-repl-options repl-env) opts)
644+
:init init
645+
:need-prompt prompt
646+
:flush flush
647+
:read read
648+
:print print
649+
:caught caught
650+
:reader reader
651+
:print-no-newline print-no-newline
652+
:source-map-inline source-map-inline
653+
:ups-libs (:libs ups-deps)
654+
:ups-foreign-libs (:foreign-libs ups-deps)))]
653655
(env/with-compiler-env
654656
(or (::env/compiler repl-env) (env/default-compiler-env opts))
655657
(binding [ana/*cljs-ns* 'cljs.user

0 commit comments

Comments
 (0)