dynamic var | since v0.0-2985 | Edit |
A string indicating the current ClojureScript target (e.g. "default"
for browsers,
"nodejs"
for Node)
Allows you to know the value of the :target
compiler option at runtime.
*target*
;;=> "nodejs"
Var bound to the name value of the compiler build :target option. For example, if the compiler build :target is :nodejs, *target* will be bound to "nodejs". *target* is a Google Closure define and can be set by compiler :closure-defines option.
(goog-define
^{:dynamic true}
*target* "default")