   (util/with-logged-time
     [state {:type :flush-unoptimized}]
 
-    (doseq [{:keys [output-name] :as mod} build-modules]
-      (flush-unoptimized-module! state mod (data/output-file state output-name)))
-
-    state
-    ))
-
-(defn flush-unoptimized
-  [state]
-  "util for ->"
-  (flush-unoptimized! state)
-  state)
+    (reduce
+      (fn [state {:keys [output-name] :as mod}]
+        (flush-unoptimized-module state mod (data/output-file state output-name)))
+      state
+      build-modules)))
 
 (defn flush [state mode {:keys [module-loader module-hash-names] :as config}]
   (case mode

                    default
                    []

                    (or release? (= :eval (get-in config [:devtools :loader-mode])))
                    [(str asset-path "/" (:output-name module))]

                    :else ;; dev-mode

          (flush-module-data))
        (flush-manifest))))

(defn make-web-worker-prepend [state mod]
  (let [all
        (get-all-module-deps state mod)
