   (println (build '[(ns hello.core)
                     (defn ^{:export greet} greet [n] (str "Hola " n))
                     (defn ^:export sum [xs] 42)]
-                  {:optimizations :simple :flags #{:pretty-print}}))
+                  {:optimizations :simple :pretty-print true}))
 
   ;; build a project with optimizations
   (build "samples/hello/src" {:optimizations :advanced})

                parse-js-ns
                (assoc :file (.getPath f) :url (to-url f))))]
    (let [js-sources (filter #(.endsWith (.getName %) ".js") (file-seq (io/file path)))]
      (remove #(not (seq (:provides %))) (map graph-node js-sources)))))

(def load-library (memoize load-library*))


               new-requires (remove #(or (contains? deps %)
                                         (contains? (set requires) %))
                                    (cljs-deps (-requires js)))]
           (recur (into (rest requires) new-requires) (assoc deps next-ns js)))
         (dependency-order (vals deps)))))))

(comment
