terser 5.4.0 → 5.5.0
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.
- package/CHANGELOG.md +5 -0
- package/dist/bundle.min.js +2 -3
- package/lib/compress/index.js +2 -2
- package/package.json +1 -1
- package/dist/bundle.min.js.map +0 -1
package/CHANGELOG.md
CHANGED
package/dist/bundle.min.js
CHANGED
@@ -16436,7 +16436,7 @@ def_optimize(AST_Binary, function(self, compressor) {
|
|
16436
16436
|
var l = self.left;
|
16437
16437
|
var r = self.right.evaluate(compressor);
|
16438
16438
|
if (r != self.right) {
|
16439
|
-
l.segments[l.segments.length - 1].value += r
|
16439
|
+
l.segments[l.segments.length - 1].value += String(r);
|
16440
16440
|
return l;
|
16441
16441
|
}
|
16442
16442
|
}
|
@@ -16445,7 +16445,7 @@ def_optimize(AST_Binary, function(self, compressor) {
|
|
16445
16445
|
var r = self.right;
|
16446
16446
|
var l = self.left.evaluate(compressor);
|
16447
16447
|
if (l != self.left) {
|
16448
|
-
r.segments[0].value = l
|
16448
|
+
r.segments[0].value = String(l) + r.segments[0].value;
|
16449
16449
|
return r;
|
16450
16450
|
}
|
16451
16451
|
}
|
@@ -26822,4 +26822,3 @@ exports._run_cli = run_cli;
|
|
26822
26822
|
exports.minify = minify;
|
26823
26823
|
|
26824
26824
|
})));
|
26825
|
-
//# sourceMappingURL=bundle.min.js.map
|
package/lib/compress/index.js
CHANGED
@@ -6245,7 +6245,7 @@ def_optimize(AST_Binary, function(self, compressor) {
|
|
6245
6245
|
var l = self.left;
|
6246
6246
|
var r = self.right.evaluate(compressor);
|
6247
6247
|
if (r != self.right) {
|
6248
|
-
l.segments[l.segments.length - 1].value += r
|
6248
|
+
l.segments[l.segments.length - 1].value += String(r);
|
6249
6249
|
return l;
|
6250
6250
|
}
|
6251
6251
|
}
|
@@ -6254,7 +6254,7 @@ def_optimize(AST_Binary, function(self, compressor) {
|
|
6254
6254
|
var r = self.right;
|
6255
6255
|
var l = self.left.evaluate(compressor);
|
6256
6256
|
if (l != self.left) {
|
6257
|
-
r.segments[0].value = l
|
6257
|
+
r.segments[0].value = String(l) + r.segments[0].value;
|
6258
6258
|
return r;
|
6259
6259
|
}
|
6260
6260
|
}
|