I'm not familiar enough with doo or cljs internals to propose a solution, but here are a couple off-the-cuff ideas:
Maybe keep a binding to the original compiler value in leiningen.doo/doo and pass this value to the cljs functions, while passing the result of add-implicit-options to doo.core functions as necessary.
Or perhaps the add-implicit-options call could be moved to doo.core/assert-compiler-opts, assuming implicit options are not needed by doo.core/install! and doo.core/run-script.
Also, thank you, @bensu, for an amazing tool! lein doo is an incredible enabler for automated cljs testing 😀
In ClojureScript 1.9.854 and above, this warning is produced during lein doo clojurescript compilation for whitespace/simple/advanced optimizations:
process.env
preload by default; see CLJS-2280process.env
preload is added twice becauseadd-implicit-options
is called twice:I'm not familiar enough with doo or cljs internals to propose a solution, but here are a couple off-the-cuff ideas:
compiler
value inleiningen.doo/doo
and pass this value to the cljs functions, while passing the result ofadd-implicit-options
todoo.core
functions as necessary.add-implicit-options
call could be moved todoo.core/assert-compiler-opts
, assuming implicit options are not needed bydoo.core/install!
anddoo.core/run-script
.Also, thank you, @bensu, for an amazing tool! lein doo is an incredible enabler for automated cljs testing 😀