lumo

:lumo: Standalone ClojureScript environment. Currently at version 1.9.0
Jonathan 2018-12-05T02:26:42.000700Z

Hi 🙂

Jonathan 2018-12-05T02:27:50.001400Z

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

this.rob 2018-12-05T08:33:39.004Z

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.rob 2018-12-05T08:34:58.004500Z

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.rob 2018-12-05T08:35:41.005100Z

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.rob 2018-12-05T16:12:39.006100Z

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