Hi 🙂
Does anyone know of a way to launch a lumo repl with compiler options, similar to cljs.repl/repl*
?
Hey 👋 Has anyone managed to get core.async working in a project compiled with the build api?
I'm aware that core.async is missing in self-hosted cljs, so am trying to use andare via npm install andare
.
If I then do a lumo -c src build.cljs
I get the following:
Invalid :refer, var cljs.core.async/>! does not exist in file cljs/core/async/macros.cljc
here's the require it's complaining about:
(ns blah.utils
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [cljs.core.async :refer [>!] :as a]))
and my build.cljs:
(require '[lumo.build.api :as b])
(b/build "src"
{:main 'blah.core
:output-to "out/main.js"
:optimizations :none
:target :nodejs})
it seems the :refer was the problem. If I remove it and use a/>!
instead it all compiles and runs fine