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 70a4313 commit db83b52Copy full SHA for db83b52
src/main/clojure/cljs/closure.clj
@@ -1893,7 +1893,10 @@
1893
(let [one-file? (and (:main all-opts)
1894
(#{:advanced :simple} (:optimizations all-opts)))
1895
source (if one-file?
1896
- (:uri (cljs-source-for-namespace (:main all-opts)))
+ (let [main (:main all-opts)
1897
+ uri (:uri (cljs-source-for-namespace main))]
1898
+ (assert uri (str "No file for namespace " main " exists"))
1899
+ uri)
1900
source)
1901
compile-opts (if one-file?
1902
(assoc all-opts :output-file (:output-to all-opts))
0 commit comments