Skip to content

Commit 6c44bf4

Browse files
committed
add new compiler options
1 parent fe5732e commit 6c44bf4

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

content/reference/compiler-options.adoc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,18 @@ Whether to elide `use strict` statements in JavaScript output. Defaults to `true
691691
:elide-strict false
692692
----
693693

694+
[[elide-to-string]]
695+
=== :elide-to-string
696+
697+
EXPERIMENTAL. Elide `.toString` implementations from ClojueScript
698+
collections. Intended to be paired with `:lite-mode`. Useful only for
699+
simpler programs.
700+
701+
[source,clojure]
702+
----
703+
:elide-to-string true
704+
----
705+
694706
[[fingerprint]]
695707
=== :fingerprint
696708

@@ -804,6 +816,18 @@ Defaults to the empty vector `[]`
804816
"src/org/example/example.js"]
805817
----
806818

819+
[[lite-mode]]
820+
=== :lite-mode
821+
822+
EXPERIMENTAL. Clojure data literals will emit constructor calls to lighter weight
823+
copy-on-write data structures. Enable smaller advanced compiled artifacts
824+
for less complex programs.
825+
826+
[source,clojure]
827+
----
828+
:lite-mode true
829+
----
830+
807831
[[nodejs-rt]]
808832
=== :nodejs-rt
809833

0 commit comments

Comments
 (0)