Skip to content

Commit e9de8c7

Browse files
committed
CLJS-1263: :libs regression, can no longer specify specific files
fix lib-rel-path so it handles specific file references correctly
1 parent 43052ba commit e9de8c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/clojure/cljs/closure.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,9 +1133,9 @@
11331133
0)})))))))
11341134

11351135
(defn lib-rel-path [{:keys [lib-path url] :as ijs}]
1136-
(let [path (util/path url)]
1137-
(if (.endsWith path ".js")
1138-
(util/get-name url)
1136+
(if (.endsWith lib-path ".js")
1137+
(util/get-name url)
1138+
(let [path (util/path url)]
11391139
(string/replace
11401140
path
11411141
(str (io/file (System/getProperty "user.dir") lib-path) File/separator)

0 commit comments

Comments
 (0)