We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f506e88 commit 028fd47Copy full SHA for 028fd47
1 file changed
src/main/clojure/cljs/js_deps.cljc
@@ -148,9 +148,9 @@ case."
148
;; avoid overwriting a CLJS dep with a CLJC dep of
149
;; the same namespace - António Monteiro
150
(let [file (when-let [f (or (:source-file dep) (:file dep))]
151
- (.toString f))
+ (str f))
152
ext (when file
153
- (.substring file (inc (.lastIndexOf file "."))))]
+ (subs file (inc (string/last-index-of file "."))))]
154
(update-in index' [provide]
155
(fn [d]
156
(if (and (= ext "cljc") (some? d))
0 commit comments