Don't insert duplicated nodes when transforming function bind
Fixes #6458
This commit is contained in:
@@ -16,7 +16,7 @@ export default function({ types: t }) {
|
||||
|
||||
function inferBindContext(bind, scope) {
|
||||
const staticContext = getStaticContext(bind, scope);
|
||||
if (staticContext) return staticContext;
|
||||
if (staticContext) return t.cloneDeep(staticContext);
|
||||
|
||||
const tempId = getTempId(scope);
|
||||
if (bind.object) {
|
||||
|
||||
Reference in New Issue
Block a user