We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 835a117 commit 435af1aCopy full SHA for 435af1a
src/main/clojure/cljs/repl/browser.clj
@@ -174,9 +174,11 @@
174
json/write-str)]
175
;; TODO: this could be cleaner if compiling forms resulted in a
176
;; :output-to file with the result of compiling those forms - David
177
- (spit (io/file "out/cljs_deps.js")
178
- (build/build
179
- '[(require '[clojure.browser.repl.preload])] {:optimizations :none}))
+ (let [f (io/file "out/cljs_deps.js")]
+ (when-not (.exists f)
+ (spit f
180
+ (build/build
181
+ '[(require '[clojure.browser.repl.preload])] {:optimizations :none}))))
182
(server/send-and-close conn 200
183
(str "var CLOSURE_UNCOMPILED_DEFINES = " closure-defines ";\n"
184
"var CLOSURE_NO_DEPS = true;\n"
0 commit comments