File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1864
1864
1865
1865
(defn add-source-map-link [{:keys [source-map output-to] :as opts} js]
1866
1866
(if source-map
1867
- (if (= output-to :print )
1868
- (str js " \n //# sourceMappingURL=" source-map)
1869
- (str js " \n //# sourceMappingURL=" (path-relative-to (io/file output-to) {:url source-map})))
1867
+ (if (= output-to :print )
1868
+ (str js " \n //# sourceMappingURL=" source-map " \n\n " )
1869
+ (str js " \n //# sourceMappingURL=" (path-relative-to (io/file output-to) {:url source-map}) " \n\n " ))
1870
1870
js))
1871
1871
1872
1872
(defn absolute-path? [path]
Original file line number Diff line number Diff line change 1279
1279
(defn emit-source-map [src dest sm-data opts]
1280
1280
(let [sm-file (io/file (str (.getPath ^File dest) " .map" ))]
1281
1281
(if-let [smap (:source-map-asset-path opts)]
1282
- (emits " \n //# sourceMappingURL=" smap
1282
+ (emitln " \n //# sourceMappingURL=" smap
1283
1283
(string/replace (util/path sm-file)
1284
1284
(str (util/path (io/file (:output-dir opts))))
1285
1285
" " )
1288
1288
(if-not (string/index-of smap " ?" ) " ?" " &" )
1289
1289
" rel=" (System/currentTimeMillis ))
1290
1290
" " ))
1291
- (emits " \n //# sourceMappingURL="
1291
+ (emitln " \n //# sourceMappingURL="
1292
1292
(or (:source-map-url opts) (.getName sm-file))
1293
1293
(if (true ? (:source-map-timestamp opts))
1294
1294
(str " ?rel=" (System/currentTimeMillis ))
You can’t perform that action at this time.
0 commit comments