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 2252ba1 commit 4ba0c79Copy full SHA for 4ba0c79
src/main/clojure/cljs/compiler.cljc
@@ -1618,11 +1618,11 @@
1618
{:ns (or ns-name 'cljs.user)
1619
:macros-ns (:macros-ns opts)
1620
:provides [ns-name]
1621
- :requires (cond-> (distinct deps)
1622
- (get-in @env/*compiler* [:options :emit-constants])
1623
- (conj ana/constants-ns-sym)
1624
- (not= ns-name 'cljs.core)
1625
- (conj 'cljs.core))
+ :requires (if (= ns-name 'cljs.core)
+ (vec (distinct deps))
+ (cond-> (conj (vec (distinct deps)) 'cljs.core)
+ (get-in @env/*compiler* [:options :emit-constants])
+ (conj ana/constants-ns-sym)))
1626
:file dest
1627
:out-file (.toString ^File dest)
1628
:source-file src}
0 commit comments