feat: refactoring project

This commit is contained in:
Carlos
2024-11-23 14:56:07 -05:00
parent f0c2a50c18
commit 1c6db5818d
2351 changed files with 39323 additions and 60326 deletions

17
node_modules/terser/lib/parse.js generated vendored
View File

@@ -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
});
}