                  "var SHADOW_MODULES = {};\n"
                  (if web-worker
                    "\nvar CLOSURE_IMPORT_SCRIPT = function(src) { importScripts(src); };\n"
-                   "\nvar CLOSURE_IMPORT_SCRIPT = function(src, opt_sourceText) { console.log(\"import\", src); };\n"
+                   ;; FIXME: should probably throw an error because we NEVER want to import anything this way
+                   "\nvar CLOSURE_IMPORT_SCRIPT = function(src, opt_sourceText) { console.log(\"BROKEN IMPORT\", src); };\n"
                    )
                  (closure-defines-and-base state)
                  (closure-goog-deps state)

        ;; since it is the initial offset before we actually have a source map
        (create-index-map
          state
          (io/file public-dir "src" (str (clojure.core/name name) ".js.index-map"))
          (line-count (slurp target))
          mod)

        (doseq [src-name sources
                :let [{:keys [output name js-name] :as rc} (get-in state [:sources src-name])]]
          (append-to-target (str "// SOURCE=" name "\n"))
          (append-to-target (str (str/trim output) "\n"))
          ;; pretend we actually loaded a separate file, live-reload needs this
          (append-to-target (str "goog.dependencies_.written[" (pr-str js-name) "] = true;\n"))
          )

        (append-to-target append-js)
        (append-to-target (str "\n\nSHADOW_MODULES[" (pr-str (str name)) "] = true;\n"))

        (append-to-target (str "//# sourceMappingURL=src/" (clojure.core/name name) ".js.index-map?r=" (rand)))
        )))



            [loom.alg :as la]
            [cognitect.transit :as transit]
            [shadow.cljs.util :as util]
     [clojure.pprint :refer (pprint)]
            ))

(defn ^com.google.javascript.jscomp.Compiler make-closure-compiler []
