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 47cd1ce commit 90fc275Copy full SHA for 90fc275
src/main/clojure/cljs/compiler.cljc
@@ -1048,9 +1048,10 @@
1048
(if (= :nodejs target)
1049
;; under node.js we load foreign libs globally
1050
(let [{:keys [js-dependency-index options]} @env/*compiler*
1051
- ijs-url (get-in js-dependency-index [(name lib) :url])]
+ ijs (get js-dependency-index (name lib))]
1052
(emitln "cljs.core.load_file(\""
1053
- (str (io/file (util/output-directory options) (util/relative-name ijs-url)))
+ (str (io/file (util/output-directory options) (or (deps/-relative-path ijs)
1054
+ (util/relative-name (:url ijs)))))
1055
"\");"))
1056
(emitln "goog.require('" (munge lib) "');"))))])
1057
0 commit comments