I had to add a few steps to get workspaces working with shadow-cljs. Not sure if it is something specific to my setup, but I thought I would document it here.
deps.edn
nubank/workspaces {:mvn/version "1.1.2"
:exclusions [cljsjs/highlight.cljs]}
shadow-cljs.edn
:js-options {:resolve {"highlight" {:target :npm :require "highlight.js"}}}
:build-options {:ns-aliases {highlight highlight.js}}
package.json
"highlight.js": "^9.12.0",
workspaces/main.cljs
(:require ["highlight.js" :as highlight])
(js/goog.exportSymbol "hljs" highlight)
I had to add a few steps to get workspaces working with shadow-cljs. Not sure if it is something specific to my setup, but I thought I would document it here.
deps.edn
shadow-cljs.edn
package.json
workspaces/main.cljs