shadow-cljs

2025-05-12T15:22:37.775889Z

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 exist

✅ 1
thheller 2025-05-12T15:44:30.152569Z

does opticlj.core have a (:require-macros [opticlj.core]) itself?

2025-05-12T15:45:33.973889Z

no, good call

2025-05-12T15:47:06.102389Z

that solved it, thanks