Fix ns form to comply with cljs.core.specs.alpha
When requiring the cljs.core.specs.alpha namespace with ClojureScript
1.10, the ns form in com.rpl.specter.navs fails spec validation and
produces a compile error, because the nested :clj reader conditionals
result in an empty :use clause.
Moving the reader conditional up to enclose :use fixes this.
Relevant spec:
b11cbeefa5/src/main/cljs/cljs/core/specs/alpha.cljc (L170)
Additional info:
https://clojurescript.org/news/2018-03-26-release#_core_specs_alpha
This commit is contained in:
parent
ac48127871
commit
eea5fcb48b
1 changed files with 2 additions and 2 deletions
|
|
@ -5,8 +5,8 @@
|
|||
[defnav defrichnav]]
|
||||
[com.rpl.specter.util-macros :refer
|
||||
[doseqres]]))
|
||||
(:use #?(:clj [com.rpl.specter.macros :only [defnav defrichnav]])
|
||||
#?(:clj [com.rpl.specter.util-macros :only [doseqres]]))
|
||||
#?(:clj (:use [com.rpl.specter.macros :only [defnav defrichnav]]
|
||||
[com.rpl.specter.util-macros :only [doseqres]]))
|
||||
(:require [com.rpl.specter.impl :as i]
|
||||
#?(:clj [clojure.core.reducers :as r])))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue