           (let [target (io/file public-dir cljs-runtime-path source-map-name)]
             (io/make-parents target)
             (spit target source-map-json)))))
-
-    (flush-manifest public-dir modules true)
 
     ;; with-logged-time expects that we return the compiler-state
     state))


  (with-logged-time
    [state {:type :flush-unoptimized}]

    (flush-manifest public-dir build-modules false)

    (doseq [mod build-modules]
      (flush-unoptimized-module! state mod))


     state)))

(defn flush-foreign-bundles
  [{:keys [public-dir build-modules] :as state}]
  (doseq [{:keys [foreign-files] :as mod} build-modules
