mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-02 20:00:05 +02:00
use minify
This commit is contained in:
10
node_modules/acorn-globals/index.js
generated
vendored
10
node_modules/acorn-globals/index.js
generated
vendored
@@ -61,7 +61,7 @@ function findGlobals(source, options) {
|
||||
break;
|
||||
case 'ObjectPattern':
|
||||
node.properties.forEach(function (node) {
|
||||
declarePattern(node.value, parent);
|
||||
declarePattern(node.value || node.argument, parent);
|
||||
});
|
||||
break;
|
||||
case 'ArrayPattern':
|
||||
@@ -105,7 +105,9 @@ function findGlobals(source, options) {
|
||||
}
|
||||
}
|
||||
parent.locals = parent.locals || {};
|
||||
parent.locals[node.id.name] = true;
|
||||
if (node.id) {
|
||||
parent.locals[node.id.name] = true;
|
||||
}
|
||||
declareFunction(node);
|
||||
},
|
||||
'Function': declareFunction,
|
||||
@@ -117,7 +119,9 @@ function findGlobals(source, options) {
|
||||
}
|
||||
}
|
||||
parent.locals = parent.locals || {};
|
||||
parent.locals[node.id.name] = true;
|
||||
if (node.id) {
|
||||
parent.locals[node.id.name] = true;
|
||||
}
|
||||
},
|
||||
'TryStatement': function (node) {
|
||||
if (node.handler === null) return;
|
||||
|
Reference in New Issue
Block a user