                  (cond-> %
                    (:watch options) (conj (:watch options))
                    ns-watch-dir (conj ns-watch-dir)))))))
+
+(defn- config-ensure-watch-dirs-on-classpath [{:keys [::config] :as cfg}]
+  (doseq [src-dir (:watch-dirs config)]
+    (when-not (fw-util/dir-on-classpath? src-dir)
+      (add-classpath! src-dir)
+      (warn-that-dir-not-on-classpath :source src-dir)))
+  cfg)
 
 ;; needs local config
 (defn figwheel-mode? [{:keys [::config options]}]

                 (pr-str k))))))

;; takes a string or file representation of a directory
(defn add-classpath! [dir]
  (when-not (fw-util/dir-on-classpath? dir)
    (log/warn (ansip/format-str [:yellow
                                 (format "Attempting to dynamically add %s to classpath!"

       config-main-ns
       config-main-sourch-path-on-classpath
       config-update-watch-dirs
       config-ensure-watch-dirs-on-classpath
       config-figwheel-mode?
       config-default-dirs
       config-default-asset-path
