Avoid node duplication to fix spread bug with import. (#6657)
This commit is contained in:
@@ -105,7 +105,7 @@ export default function({ types: t }, options) {
|
||||
callee.object = t.assignmentExpression("=", temp, callee.object);
|
||||
contextLiteral = temp;
|
||||
} else {
|
||||
contextLiteral = callee.object;
|
||||
contextLiteral = t.cloneDeep(callee.object);
|
||||
}
|
||||
t.appendToMemberExpression(callee, t.identifier("apply"));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user