File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1186
1186
(- (count (.split #"\r ?\n " fdeps-str -1 )) 1 )
1187
1187
0 )})))))))
1188
1188
1189
- (defn lib-rel-path [{:keys [lib-path url] :as ijs}]
1190
- (if (.endsWith lib-path " .js" )
1191
- (util/get-name url)
1192
- (let [path (util/path url)]
1193
- (string/replace
1194
- path
1195
- (str (io/file (System/getProperty " user.dir" ) lib-path) File/separator)
1196
- " " ))))
1189
+ (defn lib-rel-path [{:keys [lib-path url provides] :as ijs}]
1190
+ (if (nil? lib-path)
1191
+ (str (string/replace (first provides) #"\. " File/separator) " .js" )
1192
+ (if (.endsWith lib-path " .js" )
1193
+ (util/get-name url)
1194
+ (let [path (util/path url)]
1195
+ (string/replace
1196
+ path
1197
+ (str (io/file (System/getProperty " user.dir" ) lib-path) File/separator)
1198
+ " " )))))
1197
1199
1198
1200
(defn ^String rel-output-path
1199
1201
" Given an IJavaScript which is either in memory, in a jar file,
Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ JavaScript library containing provide/require 'declarations'."
308
308
io/resource)]
309
309
(let [{:keys [provides] :as lib-info} (library-graph-node lib-resource)]
310
310
(if (some #{(name lib)} provides)
311
- lib-info
311
+ ( assoc lib-info :closure-lib true )
312
312
(binding [*out* *err*]
313
313
(println
314
314
(format
You can’t perform that action at this time.
0 commit comments