We're updating the issue view to help you get more done. 

support :include-macros true modifier in :require

Description

This modifier will additionally trigger a load of a Clojure file containing macros that matches the namespace. This would allow libraries to adopt cljs.core's inlining macro style without needing both a :require-macros and :require.

The following should be supported:

1 2 (ns foo.bar (:require [baz.woz :as woz :include-macros true))
1 2 (ns foo.bar (:require [baz.woz :as woz :refer [one] :refer-macros [two]))

I think the following is probably a bridge too far:

1 2 (ns foo.bar (:use [baz.woz :only [one] :include-macros [two]))

Environment

None

Status

Assignee

David Nolen

Reporter

David Nolen

Labels

None

Approval

None

Patch

None

Priority

Major