dynamic varsince v0.0-2985Edit

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.


;;=> "nodejs"

Source docstring:
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.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
  ^{:dynamic true}
  *target* "default")