Clojurians
#lumo
<
2018-12-05
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

johnnybrown702:12:42

Hi :slightly_smiling_face:

johnnybrown702:12:50

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

rs08:12:39

Hey :wave: 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

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

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

rs16:12:39

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