@babel/helper-builder-binary-assignment-operator-visitor
Advanced tools
Comparing version 7.21.4-esm to 7.21.4-esm.1
@@ -1,9 +0,3 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = _default; | ||
var _helperExplodeAssignableExpression = require("@babel/helper-explode-assignable-expression"); | ||
var _t = require("@babel/types"); | ||
import explode from "@babel/helper-explode-assignable-expression"; | ||
import * as _t from "@babel/types"; | ||
const { | ||
@@ -13,3 +7,3 @@ assignmentExpression, | ||
} = _t; | ||
function _default(opts) { | ||
export default function (opts) { | ||
const { | ||
@@ -27,3 +21,3 @@ build, | ||
const nodes = []; | ||
const exploded = (0, _helperExplodeAssignableExpression.default)(node.left, nodes, this, scope); | ||
const exploded = explode(node.left, nodes, this, scope); | ||
nodes.push(assignmentExpression("=", exploded.ref, build(exploded.uid, node.right))); | ||
@@ -30,0 +24,0 @@ path.replaceWith(sequenceExpression(nodes)); |
{ | ||
"name": "@babel/helper-builder-binary-assignment-operator-visitor", | ||
"version": "7.21.4-esm", | ||
"version": "7.21.4-esm.1", | ||
"description": "Helper function to build binary assignment operator visitors", | ||
@@ -17,4 +17,4 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-explode-assignable-expression": "^7.21.4-esm", | ||
"@babel/types": "^7.21.4-esm" | ||
"@babel/helper-explode-assignable-expression": "^7.21.4-esm.1", | ||
"@babel/types": "^7.21.4-esm.1" | ||
}, | ||
@@ -25,3 +25,3 @@ "engines": { | ||
"author": "The Babel Team (https://babel.dev/team)", | ||
"type": "commonjs" | ||
"type": "module" | ||
} |
Sorry, the diff of this file is not supported yet
Yes
5779
35