                 "[" (ns-list-string requires) "]);")))
        (str/join "\n")))
 
-(defn flush-unoptimized [{:keys [build-modules public-dir public-path] :as state}]
+(defn flush-unoptimized
+  [{:keys [build-modules public-dir public-path] :as state}]
   (when-not (seq build-modules)
     (throw (ex-info "flush before compile?" {})))
   (println "Flushing unoptimized modules")

          ;; mod-b :require clojure.string :depends-on common
          ;; mod-a,mod-b would try to compile clojure/string.js blow up closure optimizer

          ;; FIXME: this may result in dependencies in the wrong order since find returns a map
          dups (find-sources-used-more-than-once modules)
          sorted-dups (->> module-order
                           (mapcat #(get-in modules [% :sources]))
                           (distinct)

                                          )))))))))))


(defn- ns-list-string [coll]
  (->> coll
       (map #(str "'" (comp/munge %) "'"))
