We're updating the issue view to help you get more done. 

Transitive foreign libs not loaded in non-browser REPLs

Description

mylib.js

1 mylib = { abc: 3 }

other.js

1 other = { def: 17 }

co.edn

1 2 3 4 5 {:foreign-libs [{:file "mylib.js" :provides ["my-lib"] :requires ["other-lib"]} {:file "other.js" :provides ["other-lib"]}]}

Working, with browser REPL:

1 2 3 4 5 6 $ clj -m cljs.main -co co.edn -r ClojureScript 1.10.339 cljs.user=> (require 'my-lib) cljs.user=> js/other #js {:def 17}

Faling with Node:

1 2 3 4 5 6 7 8 9 10 11 $ clj -m cljs.main -co co.edn -re node -r ClojureScript 1.10.339 cljs.user=> (require 'my-lib) nil cljs.user=> js/other repl:13 throw e__6464__auto__; ^ ReferenceError: other is not defined ...

Environment

{:deps {org.clojure/clojurescript {:mvn/version "1.10.339"}}}

Status

Assignee

Unassigned

Reporter

Mike Fikes

Labels

None

Approval

None

Patch

None

Priority

Major