File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 890
890
(if (or (not url)
891
891
(= (.getProtocol url) " jar" ))
892
892
(write-javascript opts js)
893
+ ; ; always copy original sources to the output directory
894
+ ; ; when source maps enabled
893
895
(let [out-file (if-let [ns (and (:source-map opts)
894
896
(first (:provides js)))]
895
897
(io/file (io/file (output-directory opts))
896
- (ana/ns->relpath ns )))]
897
- (when (and out-file
898
+ (ana/ns->relpath ns )))
899
+ source-url (:source-url js)]
900
+ (when (and out-file source-url
898
901
(or (not (.exists ^File out-file))
899
- (> (.lastModified (io/file ( : source-url js) ))
902
+ (> (.lastModified (io/file source-url))
900
903
(.lastModified out-file))))
901
- (spit out-file (slurp ( : source-url js) )))
904
+ (spit out-file (slurp source-url)))
902
905
js))))
903
906
904
907
(comment
You can’t perform that action at this time.
0 commit comments