Transforming Complex Assignable Expressions
This feature allows you to transform complex assignable expressions into simpler forms. The code sample demonstrates how to use the `explodeAssignableExpression` function to transform an assignment expression involving a member expression.
const { default: explodeAssignableExpression } = require('@babel/helper-explode-assignable-expression');
const t = require('@babel/types');
const node = t.assignmentExpression('=', t.memberExpression(t.identifier('obj'), t.identifier('prop')), t.numericLiteral(42));
const exploded = explodeAssignableExpression(node, true);
console.log(exploded);