This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-27
Channels
- # announcements (47)
- # babashka (36)
- # beginners (7)
- # biff (34)
- # calva (9)
- # cider (5)
- # clj-http (13)
- # clj-kondo (24)
- # cljs-dev (9)
- # clojure (146)
- # clojure-austin (1)
- # clojure-europe (16)
- # clojure-nl (1)
- # clojure-norway (8)
- # clojure-uk (2)
- # clojurescript (4)
- # clr (1)
- # core-async (9)
- # cursive (11)
- # datomic (6)
- # emacs (17)
- # events (3)
- # fulcro (45)
- # graphql (7)
- # helix (1)
- # hyperfiddle (28)
- # java (1)
- # london-clojurians (1)
- # lsp (75)
- # malli (1)
- # membrane (35)
- # reitit (6)
- # releases (1)
- # shadow-cljs (48)
- # tools-build (5)
- # tools-deps (27)
Hello! I'm trying to access a cljs namespace within a JavaScript Runtime in iOS. It should be possible, JavaScriptCore is made for stuff like that and after loading my bundled main.js
I have goog
in my global scope. However, running goog.require('hello-world.core')
returns undefined
. I'm compiling my code using clj -M -m cljs.main --target node --output-to main.js --optimizations simple -c hello-world.core
and the file I compiled is a very simple hello world file with one function that I would like to run. The presence of goog
and also goog.require
tells me that the file was successfully evaluated. However, how do I access that function in the namespace?
AFAIK CLJS namespaces don't become goog modules, unless maybe if you compile the code in some particular way. But if you need something specific stuff from some specific namespace, you can always manually export it.
Hello, the annualhttps://www.surveymonkey.com/r/clojure2023 is now open! This survey has been done every year since 2010 and has been instrumental in tracking changes in the Clojure community over time. We would greatly appreciate it if you could complete this by March 13th! It takes about 10 minutes and almost all questions are optional.