Skip to content

Commit 20854fc

Browse files
committed
[Docs] Mention cider-jack-in-cljs-dependencies
1 parent d282c7a commit 20854fc

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

doc/modules/ROOT/pages/cljs/configuration.adoc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,23 @@ options related to ClojureScript. Configuration that is specific
55
to a particular REPL (e.g. `shadow-cljs`) is covered separately
66
in the individual REPL setup sections.
77

8+
== Modifying the ClojureScript jack-in dependencies
9+
10+
Out-of-the-box, CIDER injects a single dependency into ClojureScript REPLs - namely `piggieback`.
11+
If you'd like to inject more deps you'll have to modify the `cider-jack-in-cljs-dependencies`
12+
variable. Here's an example:
13+
14+
[source,lisp]
15+
----
16+
;; let's add Weasel on jack-in
17+
(cider-add-to-alist 'cider-jack-in-cljs-dependencies "weasel/weasel" "0.7.1")
18+
----
19+
20+
Typically, modifying this variable is not needed, as ClojureScript dependencies are declared
21+
explicitly in your project configuration most of the time.
22+
23+
NOTE: Modifying this variable will affect all ClojureScript REPL types.
24+
825
== Setting a Default ClojureScript REPL Type
926

1027
If you frequently use the same ClojureScript REPL, you can set

0 commit comments

Comments
 (0)