From a792d697a351b215069b61c3c21304972d767634 Mon Sep 17 00:00:00 2001 From: Evan You Date: Sat, 28 Sep 2019 01:35:49 -0400 Subject: [PATCH] refactor: simplify slot extraneous child check --- .../compiler-core/src/transforms/vSlot.ts | 71 +++++++++---------- 1 file changed, 34 insertions(+), 37 deletions(-) diff --git a/packages/compiler-core/src/transforms/vSlot.ts b/packages/compiler-core/src/transforms/vSlot.ts index 7ba344f2..cf6a51fe 100644 --- a/packages/compiler-core/src/transforms/vSlot.ts +++ b/packages/compiler-core/src/transforms/vSlot.ts @@ -66,57 +66,54 @@ export function buildSlots( // 2. Iterate through children and check for template slots //