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.
cljs.closure/source-for-namespace
1 parent 3fd1b8b commit b721dafCopy full SHA for b721daf
src/clj/cljs/closure.clj
@@ -483,10 +483,10 @@ should contain the source for the given namespace name."
483
(if-let [cljs-res (io/resource relpath)]
484
{:relative-path relpath :uri cljs-res}
485
(let [relpath (:file (get-in @compiler-env [:js-dependency-index ns-str]))]
486
- (if-let [js-res (io/resource relpath)]
+ (if-let [js-res (and relpath (io/resource relpath))]
487
{:relative-path relpath :uri js-res}
488
- (throw
489
- (IllegalArgumentException. (str "Namespace " ns " does not exist"))))))))
+ (throw
+ (IllegalArgumentException. (str "Namespace " ns " does not exist"))))))))
490
491
(defn cljs-dependencies
492
"Given a list of all required namespaces, return a list of
0 commit comments