           (encode-source-map-json
             state
             ;; ugly hack to change the "sources":["/absolute/path/to/file.cljs"] in source maps
-            (assoc src :resource-name source-name)
+            (assoc src :resource-name source-name :prepend prepend)
             output)]
 
       (io/make-parents src-map-file)


(defn generate-source-map
  [state
   {:keys [resource-name output-name file input] :as src}
   output
   js-file
   prepend]

      (subs s 0 idx)
      s)))

(defn js-module-src-prepend [state {:keys [output-name] :as src} require?]
  (let [dep-syms
        (data/deps->syms state src)

