Skip to content

Commit

Permalink
Use a relative path for the source map URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericnormand authored and swannodette committed Oct 11, 2013
1 parent ed4c582 commit e34fddf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clj/cljs/closure.clj
Expand Up @@ -934,9 +934,9 @@
(str ";(function(){\n" js "\n})();\n")
js))

(defn add-source-map-link [{:keys [source-map] :as opts} js]
(defn add-source-map-link [{:keys [source-map output-to] :as opts} js]
(if source-map
(str js "\n//@ sourceMappingURL=" source-map)
(str js "\n//@ sourceMappingURL=" (path-relative-to (io/file output-to) {:url source-map}))
js))

(defn build
Expand Down

0 comments on commit e34fddf

Please sign in to comment.