           src-map-file
           (io/file (str (.getAbsolutePath js-file) ".map"))
 
+          use-fs-path?
+          (true? (get-in state [:compiler-options :source-map-use-fs-paths]))
+
+          ;; FIXME: make this use encode-source-map from above
           source-map-json
           (or source-map-json
               (let [sm-opts

                    (-> {(util/flat-filename resource-name) source-map}
                        (sm/encode* sm-opts)
                        (dissoc "lineCount") ;; its nil which closure doesn't like
                        (assoc "sources" [resource-name])
                        )]

                (json/write-str source-map-v3 :escape-slash false)))]


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