This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-23
Channels
- # announcements (10)
- # babashka (7)
- # beginners (31)
- # boot (4)
- # calva (8)
- # chlorine-clover (19)
- # cider (12)
- # clj-kondo (27)
- # cljsrn (7)
- # clojure (68)
- # clojure-colombia (2)
- # clojure-europe (47)
- # clojure-italy (16)
- # clojure-nl (4)
- # clojure-spec (13)
- # clojure-uk (39)
- # clojurescript (103)
- # code-reviews (8)
- # community-development (2)
- # conjure (38)
- # core-async (37)
- # cursive (2)
- # datascript (1)
- # datomic (31)
- # figwheel-main (22)
- # fulcro (18)
- # jobs (2)
- # jobs-discuss (6)
- # juxt (3)
- # keechma (1)
- # lambdaisland (6)
- # malli (30)
- # meander (20)
- # off-topic (29)
- # reagent (1)
- # reitit (16)
- # shadow-cljs (4)
- # tools-deps (70)
- # xtdb (19)
trying to use :closure-defines
like https://shadow-cljs.github.io/docs/UsersGuide.html#closure-defines but nothing seems to change, is there something I’m doing wrong?
; shadow-cljs.ed
...
:builds {:dev
{:target :react-native
:closure-defines {client.home/foo "bar"}
; client/home.cljs
(def foo "Hayea!")
...
[rn/text {:style ui/header-style} foo]
...
@benny you need to use (goog-define foo "default")
. a regular def
does nothing with regards to closure-defines.
This is perhaps a weird question, but is there a way to output javascript in shadow-cljs that doesn’t target either the browser or node? Specifically I’m looking to target https://github.com/dop251/goja