File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 497
497
(defn lite-mode? []
498
498
(get-in @env/*compiler* [:options :lite-mode ]))
499
499
500
+ (defn elide-to-string? []
501
+ (get-in @env/*compiler* [:options :elide-to-string ]))
502
+
500
503
#?(:clj
501
504
(defmacro with-warning-handlers [handlers & body]
502
505
`(binding [*cljs-warning-handlers* ~handlers]
Original file line number Diff line number Diff line change 211
211
:watch :watch-error-fn :watch-fn :install-deps :process-shim :rename-prefix :rename-prefix-namespace
212
212
:closure-variable-map-in :closure-property-map-in :closure-variable-map-out :closure-property-map-out
213
213
:stable-names :ignore-js-module-exts :opts-cache :aot-cache :elide-strict :fingerprint :spec-skip-macros
214
- :nodejs-rt :target-fn :deps-cmd :bundle-cmd :global-goog-object&array :node-modules-dirs :lite-mode })
214
+ :nodejs-rt :target-fn :deps-cmd :bundle-cmd :global-goog-object&array :node-modules-dirs :lite-mode
215
+ :elide-to-string })
215
216
216
217
(def string->charset
217
218
{" iso-8859-1" StandardCharsets/ISO_8859_1
Original file line number Diff line number Diff line change 1511
1511
; ; Elide all toString methods in :lite-mode
1512
1512
(remove
1513
1513
(core/fn [[f]]
1514
- (core/and (ana/lite-mode ? ) (core/= 'toString f))))
1514
+ (core/and (ana/elide-to-string ? ) (core/= 'toString f))))
1515
1515
(map
1516
1516
(core/fn [[f & meths :as form]]
1517
1517
(core/let [[f meths] (if (vector? (first meths))
You can’t perform that action at this time.
0 commit comments