Skip to content

Commit 838fb48

Browse files
committed
generate deps_rt.js under :none when bundle? true
1 parent 4a753fc commit 838fb48

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/clojure/cljs/closure.clj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1744,7 +1744,7 @@
17441744

17451745
(str (when (or (not module) (= :cljs-base (:module-name opts)))
17461746
(str (when (bundle? opts)
1747-
"import {npmDeps} from \"./deps-rt.js\";")
1747+
"import {npmDeps} from \"./deps_rt.js\";")
17481748
"var CLOSURE_UNCOMPILED_DEFINES = " closure-defines ";\n"
17491749
"var CLOSURE_NO_DEPS = true;\n"
17501750
"if(typeof goog == \"undefined\") document.write('<script src=\"" asset-path "/goog/base.js\"></script>');\n"
@@ -2188,6 +2188,9 @@
21882188
(when (:debug-inputs opts)
21892189
(util/debug-prn "DEBUG: all compiler inputs")
21902190
(util/debug-prn (pr-str sources)))
2191+
(when (bundle? opts)
2192+
(spit (io/file (util/output-directory opts) "deps_rt.js")
2193+
(deps-rt-js (keys (get @env/*compiler* :node-module-index)))))
21912194
(cond
21922195
modules
21932196
(let [modules' (module-graph/expand-modules modules sources)]

0 commit comments

Comments
 (0)