      libs
      (not-empty (mapv :file foreign-libs)))))
 
-(defn build-handler [{:keys [figwheel-server build-config] :as watcher}
-                     cljs-build-fn
-                     files]
-  (cljs-build-fn (assoc watcher :changed-files (map str files))))
-
 (defrecord CLJSAutobuild [build-config figwheel-server]
   component/Lifecycle
   (start [this]

        #_(clean-cljs-build* (:build-options build-config))
        ;; initial build only needs the injection and the
        ;; start and end messages
        ((-> cljs-build
             injection/build-hook
             figwheel-start-and-end-messages) this)
        (let [log-writer (or (:log-writer this)
                             (:log-writer figwheel-server)
                             (io/writer "figwheel_server.log" :append true))
              cljs-build-fn (or (:cljs-build-fn this)
                                (:cljs-build-fn figwheel-server)
                                figwheel-build)]
          (assoc this
                 :file-watcher
                 (watching/watch! (source-paths-that-affect-build build-config)

                             (fn []
                               (binding [*out* log-writer
                                         *err* log-writer]
                                 (cljs-build-fn
                                  (assoc this
                                         :changed-files (map str files)))))))))))
      this))
  (stop [this]
    (when (:file-watcher this)
