mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-02 20:00:05 +02:00
update modules
This commit is contained in:
12
node_modules/escodegen/escodegen.js
generated
vendored
12
node_modules/escodegen/escodegen.js
generated
vendored
@@ -983,7 +983,7 @@
|
||||
result.push('[');
|
||||
}
|
||||
|
||||
result.push(this.generateExpression(expr, Precedence.Sequence, E_TTT));
|
||||
result.push(this.generateExpression(expr, Precedence.Assignment, E_TTT));
|
||||
|
||||
if (computed) {
|
||||
result.push(']');
|
||||
@@ -2223,13 +2223,19 @@
|
||||
multiline = false;
|
||||
if (expr.properties.length === 1) {
|
||||
property = expr.properties[0];
|
||||
if (property.value.type !== Syntax.Identifier) {
|
||||
if (
|
||||
property.type === Syntax.Property
|
||||
&& property.value.type !== Syntax.Identifier
|
||||
) {
|
||||
multiline = true;
|
||||
}
|
||||
} else {
|
||||
for (i = 0, iz = expr.properties.length; i < iz; ++i) {
|
||||
property = expr.properties[i];
|
||||
if (!property.shorthand) {
|
||||
if (
|
||||
property.type === Syntax.Property
|
||||
&& !property.shorthand
|
||||
) {
|
||||
multiline = true;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user