File tree 2 files changed +15
-2
lines changed
2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 6
6
[cljs.pprint :as pprint]
7
7
[js-literal-ns :as js-literal]
8
8
[keyword-ns :as kw]
9
- [clojure.set :as set])
9
+ [clojure.set :as set]
10
+ [" react" :as react]
11
+ [" underscore$default" :as underscore]
12
+ [" react-UNUSED" :as react-unused]
13
+ [" underscore-UNUSEd$default" :as underscore-unused])
10
14
(:require-macros [cljs.test :refer [testing]]
11
15
[cljs.analyzer.macros :as am]
12
16
cljs.analyzer.api)
18
22
(set/intersection #{1 2 } #{1 })
19
23
(split-lines " ok" ))
20
24
25
+ (defn use-string-requires
26
+ " Uses string requires as found in the ns declaration.
27
+
28
+ Does not use the stuff marked as UNUSED, which therefore should be removed."
29
+ []
30
+ (react/foo underscore/bar))
31
+
21
32
(deftest tt
22
33
(testing " whatever"
23
34
(is (= 1 1 ))))
Original file line number Diff line number Diff line change 1
1
(ns cljsns
2
- (:require [cljs.pprint :as pprint]
2
+ (:require [" react" :as react]
3
+ [" underscore$default" :as underscore]
4
+ [cljs.pprint :as pprint]
3
5
[cljs.test :refer-macros [deftest is]]
4
6
[cljsjs.js-yaml]
5
7
[clojure.set :as set]
You can’t perform that action at this time.
0 commit comments