       modules)))
 
 (defn configure-modules
-  [{:keys [worker-info] :as state} mode {:keys [modules module-loader] :as config}]
+  [state mode config]
   (let [modules (rewrite-modules state mode config)]
     (build-api/configure-modules state modules)))
 

            [shadow.build.config :as config]
            [shadow.build.output :as output]
            [shadow.build.closure :as closure]
            [shadow.build.data :as data]
            [shadow.build.log :as log]
            [shadow.core-ext :as core-ext]

    (-> state
        ;; (maybe-inject-cljs-loader-constants mode config)
        (cond->
          (and (= :dev mode) (> (count (:modules config)) 1))
          (append-module-sources-set-loaded-calls)
          ;; only set this if any :shadow-js is used otherwise closure will complain
          (get-in state [:sym->id 'shadow.js])
          (assoc-in [:compiler-options :closure-defines 'shadow.js.process.browser] true)
