analyze-file with foreign-lib dependencies?
- I'm trying to figure out how to analyze a file that depends on
- Previously cljdoc.org would analyze with
1.10.439this no longer works. (Dynamic vars can't be resolved, see old description below)
trueI need to properly supply the foreign lib information but I can't figure out how.
cljs.analyzer.api/analyze-file with the
state-as-first-arg arity it calls
cljs.env/with-compiler-env which shadowed my own binding described in Current Approach section. I was unaware that
analyzer.api/empty-state is actually just a compiler env as well so creating the right compiler env and passing it to
analyze-file solved all issues: