            (System/exit 1))))
      requires)))
 
-;; All I can say is I'm sorry about this but, it seems to be the best
-;; way for me to reuse cljsbuild.
-
 ;; this is really deviating from cljsbuild at this point.
 ;; need to dig in and probably rewrite this
 
 ;; need to get rid of crossovers soon
 
-(defn run-compiler [project {:keys [crossover-path crossovers builds]} live-reload-options]
+(defn run-compiler [project {:keys [crossover-path crossovers builds]} figwheel-options]
   (println "Compiling ClojureScript.")
   ; If crossover-path does not exist before eval-in-project is called,
   ; the files it contains won't be classloadable, for some reason.

          (when (not-empty '~crossovers)
            (copy-crossovers#)
            (cljsbuild.util/once-every-bg 1000 "copying crossovers" copy-crossovers#))
          (let [build# (first '~parsed-builds)]
            (figwheel-sidecar.auto-builder/autobuild (:source-paths build#)
                                             (:compiler build#)
                                             ~live-reload-options)))))))

(defn optimizations-none?
  "returns true if a build has :optimizations set to :none"

    (println "\033[31mWARNING: lein-cljsbuild crossovers are deprecated, and will be removed in future versions.\n
See https://github.com/emezeske/lein-cljsbuild/blob/master/doc/CROSSOVERS.md for details.\033[0m")
    (fs/mkdirs crossover-path))
  (let [parsed-builds (map config/parse-notify-command builds)]
    (run-local-project project crossover-path parsed-builds
     '(require 'cljsbuild.crossover 'cljsbuild.util 'clj-stacktrace.repl 'figwheel-sidecar.auto-builder)
     `(do
