Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional setup required for shadow-cljs #64

Open
mjmeintjes opened this issue Jan 26, 2022 · 0 comments
Open

Additional setup required for shadow-cljs #64

mjmeintjes opened this issue Jan 26, 2022 · 0 comments

Comments

@mjmeintjes
Copy link

mjmeintjes commented Jan 26, 2022

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant