We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88eed9a commit 43052baCopy full SHA for 43052ba
src/main/clojure/cljs/closure.clj
@@ -1133,10 +1133,13 @@
1133
0)})))))))
1134
1135
(defn lib-rel-path [{:keys [lib-path url] :as ijs}]
1136
- (string/replace
1137
- (util/path url)
1138
- (str (io/file (System/getProperty "user.dir") lib-path) File/separator)
1139
- ""))
+ (let [path (util/path url)]
+ (if (.endsWith path ".js")
+ (util/get-name url)
+ (string/replace
1140
+ path
1141
+ (str (io/file (System/getProperty "user.dir") lib-path) File/separator)
1142
+ ""))))
1143
1144
(defn ^String rel-output-path
1145
"Given an IJavaScript which is either in memory, in a jar file,
0 commit comments