Skip to content

Commit

Permalink
properly munge :node-library exports
Browse files Browse the repository at this point in the history
  • Loading branch information
thheller committed Jun 14, 2018
1 parent 679f986 commit e07102b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/shadow/build/targets/node_library.clj
Expand Up @@ -11,7 +11,8 @@
[shadow.cljs.repl :as repl]
[shadow.build.node :as node]
[shadow.cljs.util :as util]
[shadow.build.data :as data]))
[shadow.build.data :as data]
[cljs.compiler :as cljs-comp]))

(s/def ::exports
(s/map-of
Expand Down Expand Up @@ -70,7 +71,7 @@
(map namespace)
(map symbol)
(into #{}))
`(cljs.core/js-obj ~@(->> exports (mapcat (fn [[k v]] [(name k) v]))))
`(cljs.core/js-obj ~@(->> exports (mapcat (fn [[k v]] [(-> k (name) (cljs-comp/munge)) v]))))
])

requires
Expand Down

0 comments on commit e07102b

Please sign in to comment.