terser 1.1.14 → 1.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -0
- data/lib/terser/version.rb +1 -1
- data/lib/terser.js +1 -1
- data/lib/terser.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57437e2e3d2af55587b82c14ff639135a66bd4ac94f9a8977e3489260685ea4a
|
4
|
+
data.tar.gz: 691d600cdb1b6064f72e1c4499da9ae26e88a494c1e895aa04c1105906a9e8e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ef67365b2f1919d5e42a02b53ad2fa475b8ab858613cbf2913cc526ed525ddbc2537b9675467c60e7e0b4b13ee5e33f581bcc9525235b84c77f98cd5eeda669
|
7
|
+
data.tar.gz: 49cb4674b89bfa8cd3e4b8e6b9e5789169932e80781467d6f0797fa8986f7948ec96c30626901a5bc6f21e9a05e66ee695b8e5c8308d4947263aef292a9e2536
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -130,6 +130,7 @@ Available options and their defaults are
|
|
130
130
|
:keep_fnames => false, # Do not drop names in function definitions
|
131
131
|
:passes => 1, # Number of times to run compress. Raising the number of passes will increase compress time, but can produce slightly smaller code.
|
132
132
|
:keep_infinity => false, # Prevent compression of Infinity to 1/0
|
133
|
+
:lhs_constants => true, # Moves constant values to the left-hand side of binary nodes. `foo == 42 → 42 == foo`
|
133
134
|
:side_effects => true, # Pass false to disable potentially dropping functions marked as "pure" using pure comment annotation. See UglifyJS documentation for details.
|
134
135
|
:switches => true, # de-duplicate and remove unreachable switch branches
|
135
136
|
}, # Apply transformations to code, set to false to skip
|
data/lib/terser/version.rb
CHANGED