 
                               :else
                               (hide-closure-defines source))
-                            "\n};"))]
-
-                 (when file
-                   (.setOriginalPath source-file (.getAbsolutePath file)))
+                            "\n};")
+                       (when file
+                         (.getAbsolutePath file)))]
 
                  source-file))
              #_(map #(do (println (.getCode %)) %))

        (->> (for [{:keys [resource-id resource-name ns require-id file deps] :as src} sources]
               (let [source (data/get-source-code state src)
                     source-file
                     (closure-source-file resource-name
                       (str "shadow$provide["
                            (if (and require-id (:minimize-require js-options))
                              (pr-str require-id)

                :source-excerpt source-excerpt}
               ))))))

(defn closure-source-file
  ([name code]
   (SourceFile/fromCode name code))
  ([name code original-name]
   (-> (SourceFile/builder)
       (.withOriginalPath original-name)
       (.buildFromCode name code))))

(defn add-input-source-maps [{:keys [build-sources] :as state} cc]
  (doseq [src-id build-sources
