ClojureScript REPLs can take nearly all the same options that can be
cljs.closure/build, for details see Compiler Options.
This page documents additional supported options.
def (and derived) forms evaluated at the REPL return
either a Var (if set to
true) or the
def init value (if
Only affects forms evaluated at the REPL; compiled source behaves as if
false. Default is
Specifies a set of lib specs (per the
require REPL special) to be
automatically loaded when launching a REPL. Defaults to specs that refer
doc etc. along with
:repl-requires ['[cljs.repl :refer-macros [source doc find-doc apropos dir pst]] '[cljs.pprint :refer [pprint] :refer-macros [pp]]]
Enable verbose reporting for the REPL. Useful for debugging. Defaults to
cljs.user=> (+ 1 2) ((1) + (2)) 3
Watch a source directory for recompilation to avoid spinning up an additional JVM.
These options are only applicable to the browser REPL that ships with ClojureScript.
By default, starting the browser REPL launches the default browser configured with your operating system to connect back to it. You can disable this behavior by setting this option to
false, and when doing so you will be prompted to connect with a message like
Waiting for browser to connect to http://localhost:9000 ...