Don't insert duplicated nodes when transforming function bind

Fixes #6458
This commit is contained in:
Nicolò Ribaudo
2017-10-13 22:49:13 +02:00
parent d7fd8888fa
commit 4a4c2f37bd
4 changed files with 14 additions and 1 deletions

View File

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