*target*

dynamic varsince v0.0-2985Edit

A string indicating the current ClojureScript target (e.g. "default" for browsers, "nodejs" for Node)


Details:

Allows you to know the value of the :target compiler option at runtime.


Examples:

*target*
;;=> "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
(goog-define
  ^{:dynamic true
    :doc "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."}
  *target* "default")