Skip to content

Commit 419cd4b

Browse files
committed
Fix foreign-lib loading, was checking for :nodejs instead of :nodejs-rt
1 parent 7171db2 commit 419cd4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/clojure/cljs/compiler.cljc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@
12631263
(defn load-libs
12641264
[libs seen reloads deps ns-name]
12651265
(let [{:keys [options js-dependency-index]} @env/*compiler*
1266-
{:keys [target optimizations]} options
1266+
{:keys [target nodejs-rt optimizations]} options
12671267
loaded-libs (munge 'cljs.core.*loaded-libs*)
12681268
loaded-libs-temp (munge (gensym 'cljs.core.*loaded-libs*))
12691269
[node-libs libs-to-load] (let [libs (remove (set (vals seen)) (filter (set (vals libs)) deps))]
@@ -1284,7 +1284,7 @@
12841284
;; have handled it - David
12851285
(when (and (= :none optimizations)
12861286
(not (contains? options :modules)))
1287-
(if (= :nodejs target)
1287+
(if nodejs-rt
12881288
;; under node.js we load foreign libs globally
12891289
(let [ijs (get js-dependency-index (name lib))]
12901290
(emitln "cljs.core.load_file("

0 commit comments

Comments
 (0)