Fork me on GitHub
#lumo
<
2018-12-05
>
Jonathan02:12:42

Hi 🙂

Jonathan02:12:50

Does anyone know of a way to launch a lumo repl with compiler options, similar to cljs.repl/repl*?

this.rob08:12:39

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

this.rob08:12:58

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]))

this.rob08:12:41

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})

this.rob16:12:39

it seems the :refer was the problem. If I remove it and use a/>! instead it all compiles and runs fine