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

View File

@@ -9,7 +9,7 @@ var _default = exports.default = (0, _helperPluginUtils.declare)(api => {
api.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta");
return {
name: "transform-optional-catch-binding",
inherits: api.version[0] === "8" ? undefined : require("@babel/plugin-syntax-optional-catch-binding").default,
manipulateOptions: (_, parser) => parser.plugins.push("optionalCatchBinding"),
visitor: {
CatchClause(path) {
if (!path.node.param) {