terser 1.1.14 → 1.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -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: e669fb4af1f437e4bcf6adf48ee2223039a942e757994c37a22c7418515807be
|
4
|
+
data.tar.gz: 7bba4cb3490018df58e45e7f50c1ec0ab4fb4b6ab3c35d188b1bfed04a45c678
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b323d67dc5cfb560ffd2d191443b042afb04a372d4f22971d3fa260ecbebecad642338a68598f7f13f951815330d86446d3bd90151abaaf073f75222c4ac904d
|
7
|
+
data.tar.gz: d82c6b0a3920ed823f2578ca99b89b07f577149d339962f061d2d891de4cac5272b89d9572047e80784da599d6413911c577800b8f300ae85bed2100b91d79c4
|
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