GitHunt
TH

thheller/code-splitting-clojurescript

Example App using ClojureScript :modules and shadow-cljs

Code Splitting ClojureScript

This is a slightly modified Code Splitting ClojureScript example meant to demonstrate a "common" code-splitting scenario where a couple modules exist and each may depend on others.

Building

You can compile it by cloning the repo and running

npm install
clj -M:dev:start
;; or
clj -M:dev:release
npx shadow-cljs release app

and then open http://localhost:8005.

The demo is hosted here:

Optional: Build Reports

;; generate a build report via
npx shadow-cljs run shadow.cljs.build-report app report.html

;; then open report.html in the browser

The sample build report is available here:

Languages

Clojure96.2%HTML3.8%

Contributors

Created March 3, 2019
Updated January 12, 2026
thheller/code-splitting-clojurescript | GitHunt