|
1093 | 1093 |
|
1094 | 1094 | (or fn? js? goog?) |
1095 | 1095 | (emits f "(" (comma-sep args) ")") |
1096 | | - |
| 1096 | + |
1097 | 1097 | :else |
1098 | 1098 | (if (and ana/*cljs-static-fns* (= (:op f) :var)) |
1099 | 1099 | ;; higher order case, static information missing |
|
1477 | 1477 | (:options @env/*compiler*)))) |
1478 | 1478 | ([^File src ^File dest opts] |
1479 | 1479 | (let [{:keys [ns requires]} (ana/parse-ns src)] |
1480 | | - (if (and (= 'cljs.loader ns) (not (contains? opts :cache-key))) |
1481 | | - false |
1482 | | - (ensure |
1483 | | - (or (not (.exists dest)) |
1484 | | - (util/changed? src dest) |
1485 | | - (let [version' (util/compiled-by-version dest) |
1486 | | - version (util/clojurescript-version)] |
1487 | | - (and version (not= version version'))) |
1488 | | - (and opts |
1489 | | - (not (and (io/resource "cljs/core.aot.js") (= 'cljs.core ns))) |
1490 | | - (not= (ana/build-affecting-options opts) |
1491 | | - (ana/build-affecting-options (util/build-options dest)))) |
1492 | | - (and opts (:source-map opts) |
1493 | | - (if (= (:optimizations opts) :none) |
1494 | | - (not (.exists (io/file (str (.getPath dest) ".map")))) |
1495 | | - (not (get-in @env/*compiler* [::compiled-cljs (.getAbsolutePath dest)])))) |
1496 | | - (when-let [recompiled' (and *recompiled* @*recompiled*)] |
1497 | | - (some requires recompiled'))))))))) |
| 1480 | + (ensure |
| 1481 | + (or (not (.exists dest)) |
| 1482 | + (util/changed? src dest) |
| 1483 | + (let [version' (util/compiled-by-version dest) |
| 1484 | + version (util/clojurescript-version)] |
| 1485 | + (and version (not= version version'))) |
| 1486 | + (and opts |
| 1487 | + (not (and (io/resource "cljs/core.aot.js") (= 'cljs.core ns))) |
| 1488 | + (not= (ana/build-affecting-options opts) |
| 1489 | + (ana/build-affecting-options (util/build-options dest)))) |
| 1490 | + (and opts (:source-map opts) |
| 1491 | + (if (= (:optimizations opts) :none) |
| 1492 | + (not (.exists (io/file (str (.getPath dest) ".map")))) |
| 1493 | + (not (get-in @env/*compiler* [::compiled-cljs (.getAbsolutePath dest)])))) |
| 1494 | + (when-let [recompiled' (and *recompiled* @*recompiled*)] |
| 1495 | + (some requires recompiled')))))))) |
1498 | 1496 |
|
1499 | 1497 | #?(:clj |
1500 | 1498 | (defn compile-file |
|
0 commit comments