feat: refactoring project
This commit is contained in:
17
node_modules/terser/lib/parse.js
generated
vendored
17
node_modules/terser/lib/parse.js
generated
vendored
@@ -2726,8 +2726,11 @@ function parse($TEXT, options) {
|
||||
return new AST_ClassStaticBlock({ start, body, end: prev() });
|
||||
}
|
||||
|
||||
function maybe_import_assertion() {
|
||||
if (is("name", "assert") && !has_newline_before(S.token)) {
|
||||
function maybe_import_attributes() {
|
||||
if (
|
||||
(is("keyword", "with") || is("name", "assert"))
|
||||
&& !has_newline_before(S.token)
|
||||
) {
|
||||
next();
|
||||
return object_or_destructuring_();
|
||||
}
|
||||
@@ -2758,7 +2761,7 @@ function parse($TEXT, options) {
|
||||
}
|
||||
next();
|
||||
|
||||
const assert_clause = maybe_import_assertion();
|
||||
const attributes = maybe_import_attributes();
|
||||
|
||||
return new AST_Import({
|
||||
start,
|
||||
@@ -2770,7 +2773,7 @@ function parse($TEXT, options) {
|
||||
quote: mod_str.quote,
|
||||
end: mod_str,
|
||||
}),
|
||||
assert_clause,
|
||||
attributes,
|
||||
end: S.token,
|
||||
});
|
||||
}
|
||||
@@ -2903,7 +2906,7 @@ function parse($TEXT, options) {
|
||||
}
|
||||
next();
|
||||
|
||||
const assert_clause = maybe_import_assertion();
|
||||
const attributes = maybe_import_attributes();
|
||||
|
||||
return new AST_Export({
|
||||
start: start,
|
||||
@@ -2916,7 +2919,7 @@ function parse($TEXT, options) {
|
||||
end: mod_str,
|
||||
}),
|
||||
end: prev(),
|
||||
assert_clause
|
||||
attributes
|
||||
});
|
||||
} else {
|
||||
return new AST_Export({
|
||||
@@ -2962,7 +2965,7 @@ function parse($TEXT, options) {
|
||||
exported_value: exported_value,
|
||||
exported_definition: exported_definition,
|
||||
end: prev(),
|
||||
assert_clause: null
|
||||
attributes: null
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user