shadow-cljs does not allow for dependencies to be exchanged for different build targts, or at least I did not figure out how to do it. Also I do prefer to explicitly express different functionality.
With this fork I simply renamed the debux namespace to debux-stubs for all stubs intendend for production builds.
That way one can use shadow-cljs' :ns-aliases feature to switch between the two libraries.
philoskim/debux {:mvn/version "0.7.9"}
apfelstrudels/debux-stubs {:git/url "https://github.com/apfelstrudels/debux-stubs.git", :sha "34b1269addcf4c47e27387ba7b61cd6602870314"}
:release {:build-options {:ns-aliases {debux.cs.core debux-stubs.cs.core}}}
-
debux-stubs
library is the production version ofdebux
(https://github.com/philoskim/debux) library. -
Refer to Two Libraries section for the relationship between
debux
anddebux-stubs
libraries.
-
To include
debux-stubs
in your project, simply add the following to your project.clj dependencies.
[philoskim/debux-stubs "0.7.9"]