Area restrita - Questionario
This commit is contained in:
+2
-4
@@ -475,13 +475,11 @@ var index = helperPluginUtils.declare((api, options) => {
|
||||
name: "transform-destructuring",
|
||||
visitor: {
|
||||
ExportNamedDeclaration(path) {
|
||||
var _path$splitExportDecl;
|
||||
const declaration = path.get("declaration");
|
||||
if (!declaration.isVariableDeclaration()) return;
|
||||
if (!variableDeclarationHasDestructuringPattern(declaration.node)) return;
|
||||
{
|
||||
var _path$splitExportDecl;
|
||||
(_path$splitExportDecl = path.splitExportDeclaration) != null ? _path$splitExportDecl : path.splitExportDeclaration = require("@babel/traverse").NodePath.prototype.splitExportDeclaration;
|
||||
}
|
||||
(_path$splitExportDecl = path.splitExportDeclaration) != null ? _path$splitExportDecl : path.splitExportDeclaration = require("@babel/traverse").NodePath.prototype.splitExportDeclaration;
|
||||
path.splitExportDeclaration();
|
||||
},
|
||||
ForXStatement(path) {
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user