@babel/plugin-transform-destructuring
Advanced tools
+2
-6
@@ -285,10 +285,6 @@ 'use strict'; | ||
| if (!elem) continue; | ||
| let elemRef; | ||
| if (core.types.isRestElement(elem)) { | ||
| elemRef = this.toArray(arrayRef); | ||
| elemRef = core.types.callExpression(core.types.memberExpression(elemRef, core.types.identifier("slice")), [core.types.numericLiteral(i)]); | ||
| this.push(elem.argument, elemRef); | ||
| this.push(elem.argument, core.types.callExpression(core.types.memberExpression(core.types.callExpression(this.scope.path.hub.addHelper("arrayLikeToArray"), [arrayRef]), core.types.identifier("slice")), [core.types.numericLiteral(i)])); | ||
| } else { | ||
| elemRef = core.types.memberExpression(arrayRef, core.types.numericLiteral(i), true); | ||
| this.push(elem, elemRef); | ||
| this.push(elem, core.types.memberExpression(arrayRef, core.types.numericLiteral(i), true)); | ||
| } | ||
@@ -295,0 +291,0 @@ } |
+3
-3
| { | ||
| "name": "@babel/plugin-transform-destructuring", | ||
| "version": "7.28.0", | ||
| "version": "7.28.5", | ||
| "description": "Compile ES2015 destructuring to ES5", | ||
@@ -21,3 +21,3 @@ "repository": { | ||
| "@babel/helper-plugin-utils": "^7.27.1", | ||
| "@babel/traverse": "^7.28.0" | ||
| "@babel/traverse": "^7.28.5" | ||
| }, | ||
@@ -28,3 +28,3 @@ "peerDependencies": { | ||
| "devDependencies": { | ||
| "@babel/core": "^7.28.0", | ||
| "@babel/core": "^7.28.5", | ||
| "@babel/helper-plugin-test-runner": "^7.27.1" | ||
@@ -31,0 +31,0 @@ }, |
Sorry, the diff of this file is not supported yet
85768
0.04%566
-0.7%Updated