terser 1.1.14 → 1.1.16

Sign up to get free protection for your applications and to get access to all the features.
data/lib/terser.rb CHANGED
@@ -85,6 +85,7 @@ class Terser
85
85
  :keep_fnames => false, # Do not drop names in function definitions
86
86
  :passes => 1, # Number of times to run compress. Raising the number of passes will increase compress time, but can produce slightly smaller code.
87
87
  :keep_infinity => false, # Prevent compression of Infinity to 1/0
88
+ :lhs_constants => true, # Moves constant values to the left-hand side of binary nodes. `foo == 42 → 42 == foo`
88
89
  :side_effects => true, # Pass false to disable potentially dropping functions marked as "pure" using pure comment annotation. See TerserJS documentation for details.
89
90
  :switches => true # de-duplicate and remove unreachable switch branches
90
91
  }, # Apply transformations to code, set to false to skip
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.14
4
+ version: 1.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Rosicky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-24 00:00:00.000000000 Z
11
+ date: 2023-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs