File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2060
2060
:requires (if (= ns-name 'cljs.core)
2061
2061
(set (vals deps))
2062
2062
(cond-> (conj (set (vals deps)) 'cljs.core)
2063
- (get-in compiler-env [:opts :emit-constants ])
2063
+ (get-in compiler-env [:options :emit-constants ])
2064
2064
(conj 'constants-table)))
2065
2065
:file dest
2066
2066
:source-file src
Original file line number Diff line number Diff line change @@ -561,7 +561,7 @@ should contain the source for the given namespace name."
561
561
(javascript-file foreign url provides requires)
562
562
js-map)))
563
563
required-js)
564
- [(when (-> @env/*compiler* :opts :emit-constants )
564
+ [(when (-> @env/*compiler* :options :emit-constants )
565
565
(let [url (deps/to-url (str (util/output-directory opts) " /constants_table.js" ))]
566
566
(javascript-file nil url url [" constants-table" ] [" cljs.core" ] nil nil )))]
567
567
required-cljs
@@ -1386,7 +1386,7 @@ should contain the source for the given namespace name."
1386
1386
(check-node-target opts)
1387
1387
(swap! compiler-env
1388
1388
#(-> %
1389
- (assoc-in [:opts :emit-constants ] emit-constants)
1389
+ (assoc-in [:options :emit-constants ] emit-constants)
1390
1390
(assoc :target (:target opts))
1391
1391
(assoc :js-dependency-index (deps/js-dependency-index all-opts))))
1392
1392
(binding [comp/*dependents* (when-not (false ? (:recompile-dependents opts))
Original file line number Diff line number Diff line change 197
197
(emits " )" )))
198
198
199
199
(defmethod emit-constant clojure.lang.Keyword [x]
200
- (if (-> @env/*compiler* :opts :emit-constants )
200
+ (if (-> @env/*compiler* :options :emit-constants )
201
201
(let [value (-> @env/*compiler* ::ana/constant-table x)]
202
202
(emits " cljs.core." value))
203
203
(emits-keyword x)
1019
1019
:requires (if (= ns-name 'cljs.core)
1020
1020
(set (vals deps))
1021
1021
(cond-> (conj (set (vals deps)) 'cljs.core)
1022
- (get-in @env/*compiler* [:opts :emit-constants ])
1022
+ (get-in @env/*compiler* [:options :emit-constants ])
1023
1023
(conj 'constants-table)))
1024
1024
:file dest
1025
1025
:source-file src}
You can’t perform that action at this time.
0 commit comments