Disable RCF in the JVM during CLJS build (in :require-macros scenario)
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 301
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
When the CLJ REPL and Shadow are sharing JVM, RCF tests are enabled at the CLJ repl and Shadow needs to disable JVM RCF tests during incremental builds because :require-macros in a CLJS file will cause the CLJ files to load, running tests if enabled.
https://shadow-cljs.github.io/docs/UsersGuide.html#compile-stages
(defn rcf-shadow-hook
{:shadow.build/stage #{:configure :flush}}
[build-state & args]
(case (:shadow.build/stage build-state)
:configure (enable! false)
:flush (enable!))
build-state)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Shadow compile stages documentation linked in the issue and the rcf-shadow-hook example. Trace how :require-macros loads CLJ files during incremental builds, then identify the integration point for the :configure and :flush stages. Done means JVM RCF tests are disabled during Shadow builds and restored afterward without affecting the CLJ REPL.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- build-system, testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100