We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a276fb commit e8b0385Copy full SHA for e8b0385
src/clj/cljs/compiler.clj
@@ -1113,9 +1113,9 @@
1113
ret))
1114
(do
1115
;; populate compilation environment with analysis information
1116
- ;; while it would seem this isn't necessary avoiding to do so damages
1117
- ;; composition of smaller compilation units like expressions (i.e. REPLs)
1118
- (when (not (contains? (::ana/namespaces @env/*compiler*) ns))
+ ;; when constants are optimized
+ (when (and (true? (:optimize-constants opts))
+ (not (contains? (::ana/namespaces @env/*compiler*) ns)))
1119
(with-core-cljs opts (fn [] (ana/analyze-file src-file opts))))
1120
ns-info)))
1121
(catch Exception e
0 commit comments