Avoid node duplication to fix spread bug with import. (#6657)

This commit is contained in:
Logan Smyth
2017-10-31 20:37:16 -07:00
committed by GitHub
parent dbff057b8c
commit 0b3182911a
4 changed files with 11 additions and 1 deletions

View File

@@ -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 {