helix

https://github.com/Lokeh/helix
dominicm 2020-03-29T09:52:06.010600Z

I'm having issues compiling with helix. Minimal repro:

(ns io.dominic.cljs-sizes.main
  (:require [helix.core]))
Compile with:
clojure -Sdeps "{:deps {org.clojure/clojurescript {:mvn/version \"1.10.597\"}}}" -m cljs.main -O advanced -o tmp.js --compile io.dominic.cljs-sizes.main
Deps.edn:
{:deps
 {lilactown/helix {:mvn/version "0.0.10"}
  cljsjs/react {:mvn/version "16.13.0-0"}
  cljsjs/react-dom {:mvn/version "16.13.0-0"}}}
I assume I'm doing something very stupid 🙂. This compile does work when http://helix.co

dominicm 2020-03-29T09:57:24.011800Z

ah, just found https://github.com/Lokeh/helix/issues/5 but setting :language-in :es6 didn't seem to help either:

❯ clojure -Sdeps "{:deps {org.clojure/clojurescript {:mvn/version \"1.10.597\"}}}" -m cljs.main -O advanced -o tmp.js -co '{:language-in :es6}' --compile io.dominic.cljs-sizes.main
Unexpected error (IllegalArgumentException) compiling at (REPL:1).
/_SLASH_impl_SLASH_class/js.cljs is not a relative path

dominicm 2020-03-29T10:00:14.012500Z

Switching to git with sha e4d3c6ab0539980920b421ca61390abb75c995d0 with :language-in set worked.

lilactown 2020-03-29T14:15:41.013400Z

yeah sorry, compiling with the vanilla CLJS compiler / figwheel doesn’t work with master right now

lilactown 2020-03-29T14:16:16.014200Z

there are some changes required to import the JS file, but those changes also break shadow-cljs 🙃