From 72d6330195676228d0f8f8a98b17c2033757858b Mon Sep 17 00:00:00 2001 From: davidnolen Date: Fri, 7 Jun 2024 14:15:13 -0400 Subject: [PATCH] add clarifying comment about :preloads --- src/main/clojure/cljs/closure.clj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/clojure/cljs/closure.clj b/src/main/clojure/cljs/closure.clj index 8d4b41244..dffd923fc 100644 --- a/src/main/clojure/cljs/closure.clj +++ b/src/main/clojure/cljs/closure.clj @@ -3081,6 +3081,10 @@ [(-compile (io/resource "cljs/nodejs.cljs") (assoc opts :output-file "nodejs.js"))])) deps/dependency-order + ;; NOTE: :preloads are compiled *after* + ;; user specified inputs. Thus user code cannot + ;; depend on anything (i.e. fn/macros) defined + ;; in preloads via global access pattern (add-preloads opts) remove-goog-base add-goog-base