bhauman / devcards

Devcards aims to provide a visual REPL experience for ClojureScript
1.53k stars 113 forks source link

add macro self requires so they are always accessible via :refer #135

Closed thheller closed 6 years ago

thheller commented 6 years ago

CLJS expects that a namespace self-requires its macros (via :require-macros) to make them accessible directly (or via :refer). shadow-cljs follows this strictly but it sort of accidentally works with plain CLJS (and thereby all other CLJS build tools) if the macro was somehow required somewhere else. See CLJS-2454.

This PR adds the self-requires for the macro namespaces. This allows using :refer for both vars and macros.

bhauman commented 6 years ago

sorry I missed this