terser 1.2.6 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +555 -137
- data/lib/terser.rb +4 -2
- 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: a07350d62a203340e8926357c2759dec74d1761d93ef1cb7af86c23c7e46a7e0
|
|
4
|
+
data.tar.gz: 7af83b6a4d487b12faf15b0da32a21b050fa630b50387389c6419c861345fed3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 766ebe8ed2964232e38ab7b964697f87d672bff4e788d71a7a4a136d948101338c9107f19a30826ef7f0d45ec0e2118137a449ad240be11dc0a579ce617c7306
|
|
7
|
+
data.tar.gz: bbe05c07b2f328fee8c74f2663c64a471ab9a0b202024db09fc8cdbf8c7503b9418b809c4823e658452da64d2d25a506a70206b10d019d7ef5a6ab14fe206ecd
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
Behavioural changes in TerserJS are listed [here](https://github.com/terser/terser/blob/master/CHANGELOG.md).
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
|
+
## 1.2.7 (23 March 2026)
|
|
5
|
+
- added a new module option to enable minification of ES6 modules (default is false)
|
|
6
|
+
- update TerserJS to [5.46.1]
|
|
7
|
+
|
|
4
8
|
## 1.2.6 (19 June 2025)
|
|
5
9
|
- update TerserJS to [5.43.1]
|
|
6
10
|
- remove base64 for compatibility with Ruby 3.4
|
data/README.md
CHANGED
|
@@ -163,6 +163,7 @@ Available options and their defaults are
|
|
|
163
163
|
:input_source_map => nil # The contents of the source map describing the input
|
|
164
164
|
},
|
|
165
165
|
:error_context_lines => 8, # How many context lines surrounding the error line. Env var ERROR_CONTEXT_LINES overrides this option
|
|
166
|
+
:module => false # Use when minifying an ES6 module. "use strict" is implied and names can be mangled on the top scope
|
|
166
167
|
}
|
|
167
168
|
```
|
|
168
169
|
|
data/lib/terser/version.rb
CHANGED