File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 16761676(defn export-dep [dep]
16771677 (str " \" " dep " \" : require('" dep " ')" ))
16781678
1679- (defn deps-rt -js
1679+ (defn npm-deps -js
16801680 " Returns the JavaScript code to support runtime require of bundled modules."
16811681 [node-requires]
16821682 (str
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 \" ./npm_deps .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 "
21892189 (util/debug-prn " DEBUG: all compiler inputs" )
21902190 (util/debug-prn (pr-str sources)))
21912191 (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 )))))
2192+ (spit (io/file (util/output-directory opts) " npm_deps .js" )
2193+ (npm-deps -js (keys (get @env/*compiler* :node-module-index )))))
21942194 (cond
21952195 modules
21962196 (let [modules' (module-graph/expand-modules modules sources)]
You can’t perform that action at this time.
0 commit comments