Follow-up fix to CLJS-2249 and related commit

Description

the fix in [1] is not enough since any other arity that calls `cljs.env/default-compiler-env` without computing the implicit options will suffer from the same problem. Instead we should update the js-dependency-index in the compiler env once we have computed all the implicit options, and every caller of `build` will get consistency for free without needing to call `add-implicit-options` themselves.

https://github.com/clojure/clojurescript/commit/d4b871cce73e43e489496b6c2bf460492bb7742a

Environment

None

Assignee

David Nolen

Reporter

António Monteiro

Labels

Approval

Accepted

Patch

Code and Test

Fix versions

Affects versions

Priority

Blocker
Configure