File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 592592 (.setLastModified ^File out-file (util/last-modified url))
593593 out-file)))
594594
595- ; ; TODO: it would be nice if we could consolidate requires-compilation?
596- ; ; logic - David
597595(defn compile-from-jar
598596 " Compile a file from a jar if necessary. Returns IJavaScript."
599597 [jar-file {:keys [output-file] :as opts}]
600598 (let [out-file (when output-file
601599 (io/file (util/output-directory opts) output-file))
602600 cacheable (ana/cacheable-files jar-file (util/ext jar-file) opts)]
603601 (when (or (nil? out-file)
604- (not (.exists ^File out-file))
605- (not= (util/compiled-by-version out-file)
606- (util/clojurescript-version ))
607- (util/changed? jar-file out-file))
602+ (comp/requires-compilation? jar-file out-file opts))
608603 ; ; actually compile from JAR
609604 (if-not (:aot-cache opts)
610605 (-compile (jar-file-to-disk jar-file (util/output-directory opts) opts) opts)
You can’t perform that action at this time.
0 commit comments