Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
25
my-app/node_modules/@babel/plugin-transform-optional-catch-binding/lib/index.js
generated
vendored
Executable file
25
my-app/node_modules/@babel/plugin-transform-optional-catch-binding/lib/index.js
generated
vendored
Executable file
|
@ -0,0 +1,25 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var _helperPluginUtils = require("@babel/helper-plugin-utils");
|
||||
var _default = exports.default = (0, _helperPluginUtils.declare)(api => {
|
||||
api.assertVersion(7);
|
||||
return {
|
||||
name: "transform-optional-catch-binding",
|
||||
inherits: require("@babel/plugin-syntax-optional-catch-binding").default,
|
||||
visitor: {
|
||||
CatchClause(path) {
|
||||
if (!path.node.param) {
|
||||
const uid = path.scope.generateUidIdentifier("unused");
|
||||
const paramPath = path.get("param");
|
||||
paramPath.replaceWith(uid);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
//# sourceMappingURL=index.js.map
|
Loading…
Add table
Add a link
Reference in a new issue