macro | since v0.0-2629 | Edit |
(in-cljs-user env & body)
Binds cljs.analyzer/*cljs-ns* to 'cljs.user and uses the given compilation environment atom and runs body.
(defmacro in-cljs-user
[env & body]
`(binding [cljs.analyzer/*cljs-ns* 'cljs.user]
(cljs.env/with-compiler-env ~env
~@body)))