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 f88fa62 commit b74538bCopy full SHA for b74538b
src/main/clojure/cljs/compiler.cljc
@@ -1114,10 +1114,14 @@
1114
(if (= :nodejs target)
1115
;; under node.js we load foreign libs globally
1116
(let [ijs (get js-dependency-index (name lib))]
1117
- (emitln "cljs.core.load_file(\""
1118
- (str (io/file (util/output-directory options) (or (deps/-relative-path ijs)
1119
- (util/relative-name (:url ijs)))))
1120
- "\");"))
+ (emitln "cljs.core.load_file("
+ (-> (io/file (util/output-directory options)
+ (or (deps/-relative-path ijs)
+ (util/relative-name (:url ijs))))
1121
+ str
1122
+ escape-string
1123
+ wrap-in-double-quotes)
1124
+ ");"))
1125
(emitln "goog.require('" (munge lib) "');")))]
1126
:cljs
1127
[(and (ana/foreign-dep? lib)
0 commit comments