according to https://clojurescript.org/guides/ns-forms#_implicit_refer, i should be able to refer both macros and non-macros without use of :refer-macros. shadow-cljs doesn't seem to like that. am i doing something wrong?
(ns opticlj.cljs.core-test
(:require [clojure.test :refer [deftest is]]
[opticlj.core :refer [defoptic ok? review!]]))
(defoptic ::two-plus-two (+ 2 2))
(deftest optics
(is (ok? (review!))))
> Invalid :refer, var opticlj.core/defoptic does not existdoes opticlj.core have a (:require-macros [opticlj.core]) itself?
https://code.thheller.com/blog/shadow-cljs/2019/10/12/clojurescript-macros.html
no, good call
that solved it, thanks