We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cljs.analyzer/cache-file
cljs/aot/core.cljs.cache.edn
1 parent 3690348 commit 7d25650Copy full SHA for 7d25650
src/clj/cljs/analyzer.clj
@@ -1888,8 +1888,13 @@ argument, which the reader will use in any emitted errors."
1888
(defn cache-file
1889
([src] (cache-file src "out"))
1890
([src output-dir]
1891
- (let [ns-info (parse-ns src)]
1892
- (io/file (str (util/to-target-file output-dir ns-info "cljs") ".cache.edn")))))
+ (if-let [core-cache
+ (and (util/url? src)
1893
+ (.endsWith (.getPath ^URL src) (str "cljs" File/separator "core.cljs"))
1894
+ (io/resource "cljs/aot/core.cljs.cache.edn"))]
1895
+ core-cache
1896
+ (let [ns-info (parse-ns src)]
1897
+ (io/file (str (util/to-target-file output-dir ns-info "cljs") ".cache.edn"))))))
1898
1899
(defn last-modified [src]
1900
(cond
0 commit comments