Skip to content

Commit 5bf7251

Browse files
committed
refactor(compiler-sfc): make more explicit regarding template pad behavior
1 parent db50009 commit 5bf7251

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/compiler-sfc/src/parse.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export function parse(
117117
descriptor.template = createBlock(
118118
node,
119119
source,
120-
pad
120+
false
121121
) as SFCTemplateBlock
122122
} else {
123123
warnDuplicateBlock(source, filename, node)
@@ -207,7 +207,7 @@ function createBlock(
207207
loc,
208208
attrs
209209
}
210-
if (node.tag !== 'template' && pad) {
210+
if (pad) {
211211
block.content = padContent(source, block, pad) + block.content
212212
}
213213
node.props.forEach(p => {

0 commit comments

Comments
 (0)