We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e4b083 commit c98b19aCopy full SHA for c98b19a
src/clj/cljs/js_deps.clj
@@ -1,11 +1,9 @@
1
(ns cljs.js-deps
2
(:require [clojure.java.io :as io]
3
[clojure.string :as string])
4
- (:import java.io.File
5
- java.net.URL
6
- java.net.URLClassLoader
7
- java.util.zip.ZipFile
8
- java.util.zip.ZipEntry))
+ (:import [java.io File]
+ [java.net URL URLClassLoader]
+ [java.util.zip ZipFile ZipEntry]))
9
10
; taken from pomegranate/dynapath
11
; https://github.com/tobias/dynapath/blob/master/src/dynapath/util.clj
@@ -48,6 +46,8 @@ If no ClassLoader is provided, RT/baseLoader is assumed."
48
46
49
47
(defmethod to-url File [^File f] (.toURL (.toURI f)))
50
+(defmethod to-url URL [^URL url] url)
+
51
(defmethod to-url String [s] (to-url (io/file s)))
52
53
(defn find-js-fs
0 commit comments