Skip to content

Additional setup required for shadow-cljs #64

@mjmeintjes

Description

@mjmeintjes

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions