   (load {:file filename}
     (fn [{:keys [lang source cache]}]
       (if source
-        (execute-source source (assoc opts :type "text"))
+        (execute-source source (assoc opts :type "text" :filename filename))
         (handle-repl-error (ex-info (str "Could not load file " filename) {}))))))
 
 (def ^:private repl-special-fns

    (r/read {:read-cond :allow :features #{:cljs}} reader)))

(defn- execute-text
  [source {:keys [expression?] :as opts}]
  (binding [cljs/*eval-fn*   caching-node-eval
            cljs/*load-fn*   load
            ana/*cljs-ns*    @current-ns

        (cljs/eval-str
          st
          source
          (cond
            expression? source
            filename filename
            :else "source")
          (merge (make-eval-opts)
            (when expression?
              {:context :expr
