File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 186
186
187
187
(defn- alias-map
188
188
[compiler cljs-ns]
189
- (->> (merge ( get-in compiler [ ::ana/namespaces cljs-ns :requires ])
190
- (get-in compiler [ ::ana/namespaces cljs-ns :require-macros ] ))
189
+ (->> (env/with- compiler-env compiler
190
+ (ana/ get-aliases cljs-ns))
191
191
(remove (fn [[k v]] (symbol-identical? k v)))
192
192
(into {})))
193
193
Original file line number Diff line number Diff line change 7
7
; ; You must not remove this notice, or any other, from this software.
8
8
9
9
(ns cljs.ns-test.foo
10
- (:require [cljs.test :refer-macros [deftest is]]))
10
+ (:require [cljs.test :refer-macros [deftest is]]
11
+ [made.up.lib :as-alias lib]))
11
12
12
13
(defn baz [] 123 )
13
14
17
18
(deftest test-namespaced-keywords
18
19
(is (= (str kw) " :cljs.ns-test.foo/foo" ))
19
20
(is (= (str qkw) " :cljs.ns-test.foo/foo" )))
21
+
22
+ (deftest test-as-alias-keywords
23
+ (is (keyword-identical? ::lib/foo :made.up.lib/foo )))
You can’t perform that action at this time.
0 commit comments