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 6512df8 commit 9100030Copy full SHA for 9100030
src/main/clojure/cljs/repl.cljc
@@ -953,6 +953,9 @@
953
(:require ~@repl-requires))
954
{:line 1 :column 1})
955
identity opts)))
956
+ maybe-load-user-file #(when-let [user-resource (util/ns->source 'user)]
957
+ (when (= "file" (.getProtocol ^URL user-resource))
958
+ (load-file repl-env (io/file user-resource) opts)))
959
read-eval-print
960
(fn []
961
(let [input (binding [*ns* (create-ns ana/*cljs-ns*)
@@ -983,6 +986,7 @@
983
986
(analyze-source analyze-path opts)))
984
987
(init)
985
988
(run-inits repl-env inits)
989
+ (maybe-load-user-file)
990
(catch Throwable e
991
(caught e repl-env opts)))
992
(when-let [src (:watch opts)]
0 commit comments