From 5bf72517ce81a01e137e32a135fee3bf45429798 Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 3 Apr 2020 21:11:26 -0400 Subject: [PATCH] refactor(compiler-sfc): make more explicit regarding template pad behavior --- packages/compiler-sfc/src/parse.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/compiler-sfc/src/parse.ts b/packages/compiler-sfc/src/parse.ts index 0d834a93..d59e131a 100644 --- a/packages/compiler-sfc/src/parse.ts +++ b/packages/compiler-sfc/src/parse.ts @@ -117,7 +117,7 @@ export function parse( descriptor.template = createBlock( node, source, - pad + false ) as SFCTemplateBlock } else { warnDuplicateBlock(source, filename, node) @@ -207,7 +207,7 @@ function createBlock( loc, attrs } - if (node.tag !== 'template' && pad) { + if (pad) { block.content = padContent(source, block, pad) + block.content } node.props.forEach(p => {