Skip to content

Commit

Permalink
add clarifying comment about :preloads
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Jun 7, 2024
1 parent 4733dd8 commit 72d6330
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/clojure/cljs/closure.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72d6330

Please sign in to comment.